public function exportBenchmarkReportPdfForApiRoute(ClientSurvey $client_survey, GetBenchmarkReport $request): Response 	{ 		$client_survey->load([ 			'applicants' => function ($query) { 				$query->available()->final(); 			}, 		]);  		$locale = $request->benchmark_language ?? DomainLanguages::getDefaultLanguage();  		$isPreview = false; 		$view = $this->getView($request, $client_survey, $isPreview, $locale, false); 		$isPreview = !$request->boolean('download');  		$data = $this->chromePdfService->generatePdf($view->render());  		$name = $client_survey->generateDownloadFileNameBenchmark($locale); 		$showType = $isPreview ? 'inline' : 'attachment';  		$userActivityService = new UserActivityService($request); 		$userActivityService->createCustomEntry($client_survey, UserActivityType::Read);  		return response()->make($data, 200, [ 			'Content-Type' => 'application/pdf', 			'Content-Disposition' => "$showType; filename=$name", 		]); 	}