public function getBasicQuestionsData(ClientSurvey $client_survey, string $locale): Collection 	{ 		$questions_data = collect();  		$applicant_ids = $client_survey->applicants->pluck('id')->all(); 		$question_ids = $client_survey->mainQuestions->pluck('id')->toArray(); 		$extra_question_ids = $client_survey->extraQuestions()->where('type', QuestionType::StandardRadio)->pluck('id')->all(); // TO DO CHECK - ADD FIKLTERS.. 		$all_question_ids = array_merge($question_ids, $extra_question_ids);  		$answers = Answer::select(DB::raw('ROUND(avg(answer_value),3) as answer_avg_score ,question_id'))->groupBy('question_id')->whereIn('question_id', $all_question_ids)->whereIn('applicant_id', $applicant_ids)->get(); 		$questions = Question::whereIn('id', $answers->pluck('question_id'))->with(['answers.question'])->get();  		$answers->each(function (Answer $answer, $key) use (&$questions, &$questions_data, &$client_survey, &$locale) { 			$question = $questions->where('id', $answer->question_id)->first();  			$questions_data->push([ 				'id' => $answer->question_id, 				'title' => $questions[$key]->getTranslation('title', $locale), 				'code' => $questions[$key]->code, 				'average_score' => $answer['answer_avg_score'], 				'count_answers' => $this->countAnswersForQuestion($client_survey, $question->answers), 				'answers' => $question->answers->where('client_survey_id', $client_survey->getKey()), 			]); 		});  		return $questions_data; 	}