public function index(GetClientSurveys $request): 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') 			->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(); 			}) 			->puls() 			->izzSurveys() 			->where('survey_id', $selected_base_survey_filter)->latest()->get();  		return view('client-surveys-puls.list', compact('client_surveys', 'base_surveys', 'selected_base_survey_filter', 'show_all')); 	}