public function index(QuestionFilterRequestPpi $request): View 	{ 		$user = $request->user(); 		$start_date = $request->start_date ?? formatTimestamp(now($user->timezone)->startOfYear(), 'Y-m-d H:i'); 		$end_date = $request->end_date ?? formatTimestamp(now($user->timezone)->endOfYear(), 'Y-m-d H:i');  		$domain = auth()->user()->user->activeDomain; 		$translations = $domain?->languages;  		$selected_survey = $request->survey_filter; 		$selected_category = $request->category_filter; 		$surveys = Survey::ppiSurveys()->latest('year')->get(); 		$categories = Category::with('survey')->ppi()->orderBy('ordering')->get(); 		$selected_client_survey = $request->client_survey_filter; 		$question_class = $request->question_class;  		$questions = Question::with('category.survey')->filter($selected_category, $selected_client_survey, $question_class, $selected_survey) 		->ppiQuestions() 		->when($question_class == QuestionClass::PpiBasic->value, function ($query) { 			$query->whereHas('category', function ($query) { 				$query->ppi(); 			}); 		}) 		->latest()->get();  		return view('questions.list-ppi', compact('questions', 'translations', 'categories', 'selected_category', 'surveys', 'selected_survey', 'selected_client_survey', 'question_class', 'start_date', 'end_date')); 	}