public function viewRanking(GetClientSurveys $request, BenchmarkReportService $benchmarkReportService): View 	{ 		$user = $request->user();  		$base_surveys = Survey::izzSurveys()->latest('year')->get(['id', 'title', 'relevant']); 		$selected_base_survey_filter = $request->selected_base_survey_filter ?? $base_surveys->first()?->getKey();  		$show_all = $request->boolean('show_all');  		$client_surveys = ClientSurvey::with('client.authParent', 'client.domain', 'client.industry') 			->withCount([ 				'applicants as completed_survey_count' => function ($query) { 					$query->where('filled', true); 				}, 				'applicants as total_survey_count', 			]) 			->withHasDuplicateApplicants() 			->withHasConflictingAnswers() 			->when(!$show_all, function ($query) { 				$query 					->where('relevant', true) 					->notCanceled(); 			}) 			->izzSurveys() 			->pulser() 			->where('survey_id', $selected_base_survey_filter)->latest()->get();  		$locale = $request->lang ?? DomainLanguages::getDefaultLanguage();  		$extended_client_surveys = $benchmarkReportService->getClientSurveysWithRanks($client_surveys, $locale); 		$categories = $benchmarkReportService->getCategoriesFor($extended_client_surveys, $locale);  		return view('client-surveys.rankings', compact('client_surveys', 'base_surveys', 'selected_base_survey_filter', 'show_all', 'extended_client_surveys', 'categories')); 	}