public function getQuestions(Domain $domain, ClientSurvey $id, GetClientSurveyQuestions $request): JsonResource 	{ 		if ($id->client_id !== auth()->user()->user->getKey()) { 			abort(403, (string) __('client-surveys.report-generation-errors.wrong-client')); 		}  		$clientSurvey = $id->load([ 			'extraQuestions' => function ($query) { 				$query->includes()->available()->orderBy('ordering'); 			}, 			'demographicQuestions' => function ($query) { 				$query->includes()->available()->orderBy('ordering'); 			}, 			'survey.questions' => function ($query) { 				$query->with('children'); 			}, 		]);  		$clientSurvey->setAttribute('negativeQuestions', $clientSurvey->survey->questions->pluck('children')->flatten());  		return new ClientSurveyQuestionsPreviewResource($clientSurvey); 	}