/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $estimates = Estimate::orderBy('id', 'DESC')->get(); $customers = Customer::all(); $vehicles = Vehicle::all(); $departments = Department::all(); $users = User::all(); return view('estimates.estimates', compact('estimates', 'customers', 'vehicles', 'departments', 'users')); }