public function index(Domain $domain, Request $request): JsonResource 	{ 		$this->validate($request, [ 			'year' => ['nullable', 'integer'], 		]);  		$client = auth()->user()->user;  		return ClientSurveyResourceList::collection($client->surveys()->with('survey')->withCount([ 			'applicants as completed_survey_count' => function ($query) { 				$query->where('filled', true); 			}, 			'applicants as total_survey_count', 		])->withExists([ 			'applicants' => function ($query) { 				$query->fillingOnlineSurvey()->doesntHaveMail(); 			}, 		]) 		->forYear($request->year)->notCanceled()->pulser()->includes()->available()->latest()->simplePaginate()); 	}