public function totalAnswersPerCategory(array|Collection $categories, array $applicants): Collection 	{ 		return $categories->map(function (Category $item) use ($applicants) { 			// ukupno grupirani odgovori po kategorijama po answer value 			$categoryBasedAnswers = $this->getAnswers($item->questions->pluck('id')->all(), $applicants);  			$totalAnswers = 0; 			$totalAnwersMaxPossible = 0;  			foreach ($categoryBasedAnswers as $answer) { 				$totalAnwersMaxPossible += $answer->answer_value_count; 				$totalAnswers += ($answer->answer_value_count * (int) $answer->value); 			}  			$totalCategoriesAverage = round($totalAnswers / ($totalAnwersMaxPossible * 4), 3); 			$totalCategoriesAverageTurnedIntoScale4 = round(4 * $totalCategoriesAverage, 3); 			$item->category_average = $totalCategoriesAverageTurnedIntoScale4; 			$item->average_px = round(self::DIV_WIDTH_PX * $totalCategoriesAverage);  			return $item; 		}); 	}