public function calculateDataForIzzPulsReminderEmail(ClientSurvey $client_survey): array 	{ 		$generalReportPdfService = new ExportPdfService; 		$categories = $client_survey->getCategories(); 		$worst_questions_by_score = []; 		$default_language = $client_survey->client->default_language->value;  		$applicant_ids = $client_survey->getApplicants()->pluck('id')->toArray();  		$questions_ids = $categories->pluck('questions')->flatten()->pluck('id')->toArray();  		$categories_avg_score = $generalReportPdfService->getCategoriesAverageScore($categories, $default_language, $applicant_ids); 		$worst_categories_by_score = collect($categories_avg_score)->sortBy('score')->take(3);  		$questions_answers = $this->calculateClientSurveyQuestionsAverageScore($questions_ids, $applicant_ids)->sortBy('answer_value_sum')->take(6); 		$questions = Question::whereIn('id', $questions_answers->pluck('id'))->with(['answers'])->get();  		foreach ($questions_answers as $question) { 			array_push($worst_questions_by_score, [ 				'id' => $question['id'], 				'title' => $questions->where('id', $question['id'])->first()->getTranslation('title', $default_language), 				'score' => $question['answer_value_sum'], 				'answers' => $questions->firstWhere('id', $question['id'])?->answers, 			]); 		}  		return [ 			'worst_categories_by_score' => $worst_categories_by_score, 			'worst_questions_by_score' => $worst_questions_by_score, 		]; 	}