dashboardService = $dashboardService; } /** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function dashboard() { try { $data = [ 'statistics' => $this->dashboardService->getDashboardStatistics() ]; return view('backend.dashboard', compact( 'data' )); } catch (\Exception $ex) { Log::error($ex->getMessage()); } } }