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');  		$client_surveys = ClientSurvey::with('client.authParent') 			->whereBetween('created_at', [$start_date, $end_date]) 			->baPublicAndInternalSurveys() 			->brandAwareness() 			->latest() 			->get();  		$domain = auth()->user()->user->activeDomain; 		$translations = $domain?->languages;  		$selected_survey = $request->survey_filter; 		$selected_category = $request->category_filter; 		$surveys = Survey::baSurveys()->latest('year')->get(); 		$categories = Category::with('survey')->ba()->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() 		->where(function ($query) { 			$query->whereHas('category', function ($query) { 				$query->ba(); 			})->orWhereHas('clientSurvey', function ($query) { 				$query->baPublicAndInternalSurveys(); 			}); 		}) 		->latest()->get();  		return view('questions.list-ba', compact('questions', 'translations', 'client_surveys', 'categories', 'selected_category', 'surveys', 'selected_survey', 'selected_client_survey', 'question_class', 'start_date', 'end_date')); 	}