diff --git a/app/controllers/admin/CategoriesController.php b/app/controllers/admin/CategoriesController.php index eb50b49abd..862ed87083 100755 --- a/app/controllers/admin/CategoriesController.php +++ b/app/controllers/admin/CategoriesController.php @@ -23,7 +23,7 @@ class CategoriesController extends AdminController public function getIndex() { // Grab all the categories - $categories = Category::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $categories = Category::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/categories/index', compact('categories')); diff --git a/app/controllers/admin/DepreciationsController.php b/app/controllers/admin/DepreciationsController.php index ce7a262bd5..d45b3ff67f 100755 --- a/app/controllers/admin/DepreciationsController.php +++ b/app/controllers/admin/DepreciationsController.php @@ -23,7 +23,7 @@ class DepreciationsController extends AdminController public function getIndex() { // Grab all the depreciations - $depreciations = Depreciation::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $depreciations = Depreciation::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/depreciations/index', compact('depreciations')); diff --git a/app/controllers/admin/LicensesController.php b/app/controllers/admin/LicensesController.php index 822651eb8a..b54643fe57 100755 --- a/app/controllers/admin/LicensesController.php +++ b/app/controllers/admin/LicensesController.php @@ -33,7 +33,7 @@ class LicensesController extends AdminController public function getIndex() { // Grab all the licenses - $licenses = License::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $licenses = License::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/licenses/index', compact('licenses')); diff --git a/app/controllers/admin/LocationsController.php b/app/controllers/admin/LocationsController.php index 26d5601d0b..5109ee16d8 100755 --- a/app/controllers/admin/LocationsController.php +++ b/app/controllers/admin/LocationsController.php @@ -23,7 +23,7 @@ class LocationsController extends AdminController public function getIndex() { // Grab all the locations - $locations = Location::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $locations = Location::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/locations/index', compact('locations')); diff --git a/app/controllers/admin/ManufacturersController.php b/app/controllers/admin/ManufacturersController.php index 8b619e7ed1..ebf35c388e 100755 --- a/app/controllers/admin/ManufacturersController.php +++ b/app/controllers/admin/ManufacturersController.php @@ -21,7 +21,7 @@ class ManufacturersController extends AdminController public function getIndex() { // Grab all the manufacturers - $manufacturers = Manufacturer::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $manufacturers = Manufacturer::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/manufacturers/index', compact('manufacturers')); diff --git a/app/controllers/admin/ModelsController.php b/app/controllers/admin/ModelsController.php index 65e7af9fb1..5982ba0c11 100755 --- a/app/controllers/admin/ModelsController.php +++ b/app/controllers/admin/ModelsController.php @@ -24,7 +24,7 @@ class ModelsController extends AdminController public function getIndex() { // Grab all the models - $models = Model::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $models = Model::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/models/index', compact('models')); diff --git a/app/controllers/admin/StatuslabelsController.php b/app/controllers/admin/StatuslabelsController.php index dfd705c344..9e6868c495 100755 --- a/app/controllers/admin/StatuslabelsController.php +++ b/app/controllers/admin/StatuslabelsController.php @@ -23,7 +23,7 @@ class StatuslabelsController extends AdminController public function getIndex() { // Grab all the statuslabels - $statuslabels = Statuslabel::orderBy('created_at', 'DESC')->paginate(10); + $statuslabels = Statuslabel::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/statuslabels/index', compact('statuslabels')); diff --git a/app/controllers/admin/SuppliersController.php b/app/controllers/admin/SuppliersController.php index ba516a253d..a71c9497f8 100755 --- a/app/controllers/admin/SuppliersController.php +++ b/app/controllers/admin/SuppliersController.php @@ -21,7 +21,7 @@ class SuppliersController extends AdminController public function getIndex() { // Grab all the suppliers - $suppliers = Supplier::orderBy('created_at', 'DESC')->paginate(Setting::getSettings()->per_page); + $suppliers = Supplier::orderBy('created_at', 'DESC')->get(); // Show the page return View::make('backend/suppliers/index', compact('suppliers'));