Remove the loading of asset maintenances that are not used by view

This commit is contained in:
Marcus Moore 2023-04-27 17:12:53 -07:00
parent e25dc42121
commit 429c4cb99f
No known key found for this signature in database

View file

@ -898,12 +898,8 @@ class ReportsController extends Controller
public function getAssetMaintenancesReport()
{
$this->authorize('reports.view');
// Grab all the improvements
$assetMaintenances = AssetMaintenance::with('asset', 'supplier', 'asset.company')
->orderBy('created_at', 'DESC')
->get();
return view('reports/asset_maintenances', compact('assetMaintenances'));
return view('reports.asset_maintenances');
}
/**