public function index(Domain $domain, Request $request): JsonResource 	{ 		$this->validate($request, [ 			'year' => ['nullable', 'integer'], 		]);  		$client = auth()->user()->user;  		return ClientSurveyPulsResourceList::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()->puls()->includes()->available()->latest()->simplePaginate()); 	}