public function edit(ClientSurvey $id): View 	{ 		$client_survey = $id; 		$surveys = Survey::ppiSurveys()->latest()->get(); 		$client_surveys_ppi = ClientSurvey::base()->ppiSurveys()->latest()->get(); 		$clients = Client::where('domain_id', auth()->user()->user->activeDomain?->getKey())->get(); 		$main_questions = $client_survey->mainQuestions()->with('category')->orderBy('ordering')->get(); 		$extra_questions = $client_survey->extraQuestions()->withCount(['answers' => function ($query) use ($client_survey) { 			$query->where('client_survey_id', $client_survey->getKey()); 		}])->with([ 			'clientSurvey',		// used for getPpiCompletionPercentage method 		])->orderBy('ordering')->get(); 		$ppi_brand_awareness_questions = $client_survey->ppiBrandAwarenessQuestions()->orderBy('ordering')->get(); 		$demographic_questions = $client_survey->demographicQuestions()->orderBy('ordering')->get(); 		$available_demographic_questions = Question::where('class', QuestionClass::PpiDemographic)->orderBy('ordering')->get();  		return view('client-surveys-ppi.add', compact('client_survey', 'clients', 'surveys', 'main_questions', 'extra_questions', 'ppi_brand_awareness_questions', 'demographic_questions', 'client_surveys_ppi', 'available_demographic_questions')); 	}