public function exportBasicReportPdf(ClientSurvey $client_survey, Request $request): Response|View 	{ 		$locale = $request->language ?? DomainLanguages::getDefaultLanguage(); 		$extraQuestions = $request->include_extra_questions;  		$survey = $client_survey->loadAdditionalDataWithFilters($request);  		if (!$survey->isGeneratingReportPossible()) { 			abort(422, (string) __('general-report-pdf.no-applicants', [], $locale)); 		}  		if ($survey->getApplicants()->count() < setting('min_employees', 5)) { 			abort(422, (string) __('general-report-pdf.not-enough-applicants', [], $locale)); 		}  		$filterValues = $request->filter_values ?? [];  		$result = $this->generalReportGeneratorService->generate($survey, $locale, $filterValues, $extraQuestions);  		[$survey, 			$categories, 			$category_pages, 			$categories_with_avg_score, 			$categories_with_best_score, 			$questions_with_best_score, 			$categories_with_worst_score, 			$questions_with_worst_score, 			$array_of_applicants, 			$enps_score, 			$enps_percentage_data, 			$applicant_engagement_percentages, 			$headerLogoUrl] = $this->exportPdfService->exportBasicReportPdf($survey, $locale);  		$filterRawObject = new AppliedFiltersRawObject($request->locations, $request->departments, $request->filter_values);  		$preparedFilters = $this->prepareAppliedFiltersService->setFilter($filterRawObject)->setLocale($locale)->prepare();  		$isPreview = false;  		$view = view($survey->getViewFile(), compact('result', 'locale', 'survey', 'categories', 'category_pages', 'categories_with_avg_score', 'categories_with_best_score', 'questions_with_best_score', 'categories_with_worst_score', 'questions_with_worst_score', 'array_of_applicants', 'enps_score', 'enps_percentage_data', 'applicant_engagement_percentages', 'isPreview', 'preparedFilters', 'headerLogoUrl'));  		$isPreview = !$request->boolean('download');  		$data = $this->chromePdfService->generatePdf($view->render());  		$name = $survey->generateDownloadFileName($locale);  		$showType = $isPreview ? 'inline' : 'attachment';  		$userActivityService = new UserActivityService($request); 		$userActivityService->createCustomEntry($survey, UserActivityType::Read);  		return response()->make($data, 200, [ 			'Content-Type' => 'application/pdf', 			'Content-Disposition' => "$showType; filename=$name", 		]); 	}