public function getComparableQuestions(ClientSurvey $puls_client_survey, string $locale): Collection 	{ 		$pulser_questions = collect(); 		$comparable_questions = collect();  		$client_survey_pulser = ClientSurvey::Pulser()->where([['client_id', $puls_client_survey->client->id], ['domain_id', $puls_client_survey->domain_id]])->whereHas('survey', function ($query) use ($puls_client_survey) { 			return $query->where('year', $puls_client_survey->survey->year); 		})->latest()->first(); 		$pulser_applicant_ids = $client_survey_pulser->getApplicants()->pluck('id');  		$basic_puls_questions = $this->getBasicQuestionsData($puls_client_survey, $locale); 		$basic_puls_question_codes = $basic_puls_questions->pluck('code')->toArray();  		$client_survey_pulser->getCategories()->each(function (Category $category) use (&$pulser_questions, &$basic_puls_question_codes) { 			$category_questions = $category->questions->whereIn('code', $basic_puls_question_codes);  			if ($category_questions->count()) { 				$pulser_questions->push($category_questions); 			} 		});  		$pulser_questions->flatten(1)->each(function (Question $question) use (&$comparable_questions, &$basic_puls_questions, &$pulser_applicant_ids, &$locale) { 			$puls_question = $basic_puls_questions->where('code', $question->code)->first();  			$pulser_avg_question_score = $question->answers->whereIn('applicant_id', $pulser_applicant_ids)->avg(function ($item) { 				return $item->getRawOriginal('answer_value'); 			});  			if (count($puls_question)) { 				if ($pulser_avg_question_score > 0 && $puls_question['average_score'] > 0) { 					$pulser_question = [ 						'id' => $question->id, 						'type' => $question->type, 						'title' => $question->getTranslation('title', $locale), 						'code' => $question->code, 						'average_score' => number_format((float) $pulser_avg_question_score, 3, '.', ''), 					];  					$comparable_questions->push([ 						'pulser_question' => $pulser_question, 						'puls_question' => $puls_question, 					]); 				} 			} 		});  		return $comparable_questions; 	}