get()->count(); $totalNewApplications = Application::where('applicationStatus', 'STAGE_SUBMITTED')->get()->count(); $totalDenied = Application::where('applicationStatus', 'DENIED')->get()->count(); return view('dashboard.dashboard') ->with([ 'vacancies' => Vacancy::all(), 'totalUserCount' => User::all()->count(), 'totalDenied' => $totalDenied, 'totalPeerReview' => $totalPeerReview, 'totalNewApplications' => $totalNewApplications ]); } }