public function edit(ClientSurvey $id): View 	{ 		$client_survey = $id; 		$surveys = Survey::baSurveys()->latest()->get(); 		$main_questions = $client_survey->mainQuestions()->with('category')->orderBy('ordering')->get();  		$client_surveys_ba = ClientSurvey::baSurveys()->whereHas('child')->get();  		$clients = Client::where('domain_id', auth()->user()->user->activeDomain?->id)->get(); 		$extra_questions = $client_survey->extraQuestions()->withCount(['answers' => function ($query) use ($client_survey) { 			$query->where('client_survey_id', $client_survey->id); 		}])->with([ 			'clientSurvey',		// used for getPpiCompletionPercentage method 		])->orderBy('ordering')->get();  		return view('client-surveys-ba-internal.add', compact('client_survey', 'client_surveys_ba', 'clients', 'main_questions', 'surveys', 'extra_questions')); 	}