From 8a93e1e7963d83b2d19cf9cadc7864bed354c0e4 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 15 Sep 2021 13:49:53 -0700 Subject: [PATCH] Remove asset call on depreciation report controller method We ajax this in now, so no need for it Signed-off-by: snipe --- app/Http/Controllers/ReportsController.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 4b92634b4d..a8c38d77ab 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -102,11 +102,7 @@ class ReportsController extends Controller { $this->authorize('reports.view'); $depreciations = Depreciation::get(); - // Grab all the assets - $assets = Asset::with( 'assignedTo', 'assetstatus', 'defaultLoc', 'location', 'company', 'model.category', 'model.depreciation') - ->orderBy('created_at', 'DESC')->get(); - - return view('reports/depreciation', compact('assets'))->with('depreciations',$depreciations); + return view('reports/depreciation')->with('depreciations',$depreciations); } /**