public function getComparativeReportDataByYear(Domain $domain, ClientSurvey $id, GetComparativeReportByYear $request): JsonResource 	{ 		$clientSurveyService = new ClientSurveyService; 		$clientSurveyService->checkIfSurveyBelongsToUser($id, $request);  		$client_survey = $id->load([ 			'survey.questions' => function ($query) { 				$query->comparableTypes(); 			}, 			'demographicQuestions' => function ($query) { 				$query->comparableTypes(); 			}, 			'extraQuestions' => function ($query) { 				$query->comparableTypes(); 			}, 			'locations', 			'departments', 		]);  		return new ClientSurveyComparativeReportDataResource($client_survey); 	}