public function update(UpdateQuestionBa $request, Question $id, QuestionService $questionService): RedirectResponse 	{ 		$parent_question = Question::find($request->question_id); 		$index = !is_null($parent_question) ? (array_search($request->questions_answer, $parent_question->getDefaultTranslation('available_answers')) ?? 0) : null;  		$id->update([ 			'code' => $request->code, 			'title' => [ 				'en' => $request->title_en ?? $id->getTranslation('title', 'en'), 				'hr' => $request->title_hr ?? $id->getTranslation('title', 'hr'), 				'bs' => $request->title_bs ?? $id->getTranslation('title', 'bs'), 				'mk' => $request->title_mk ?? $id->getTranslation('title', 'mk'), 				'sl' => $request->title_sl ?? $id->getTranslation('title', 'sl'), 				'sr' => $request->title_sr ?? $id->getTranslation('title', 'sr'), 				'fr' => $request->title_fr ?? $id->getTranslation('title', 'fr'), 				'de' => $request->title_de ?? $id->getTranslation('title', 'de'), 			], 			'description' => [ 				'en' => $request->has('description_en') ? $request->description_en : $id->getTranslation('description', 'en'), 				'hr' => $request->has('description_hr') ? $request->description_hr : $id->getTranslation('description', 'hr'), 				'bs' => $request->has('description_bs') ? $request->description_bs : $id->getTranslation('description', 'bs'), 				'mk' => $request->has('description_mk') ? $request->description_mk : $id->getTranslation('description', 'mk'), 				'sl' => $request->has('description_sl') ? $request->description_sl : $id->getTranslation('description', 'sl'), 				'sr' => $request->has('description_sr') ? $request->description_sr : $id->getTranslation('description', 'sr'), 				'fr' => $request->has('description_fr') ? $request->description_fr : $id->getTranslation('description', 'fr'), 				'de' => $request->has('description_de') ? $request->description_de : $id->getTranslation('description', 'de'), 			], 			'available_answers' => [ 				'en' => !empty($request->available_answers_en) ? $request->available_answers_en : $id->getTranslation('available_answers', 'en'), 				'hr' => !empty($request->available_answers_hr) ? $request->available_answers_hr : $id->getTranslation('available_answers', 'hr'), 				'bs' => !empty($request->available_answers_bs) ? $request->available_answers_bs : $id->getTranslation('available_answers', 'bs'), 				'mk' => !empty($request->available_answers_mk) ? $request->available_answers_mk : $id->getTranslation('available_answers', 'mk'), 				'sl' => !empty($request->available_answers_sl) ? $request->available_answers_sl : $id->getTranslation('available_answers', 'sl'), 				'sr' => !empty($request->available_answers_sr) ? $request->available_answers_sr : $id->getTranslation('available_answers', 'sr'), 				'fr' => !empty($request->available_answers_fr) ? $request->available_answers_fr : $id->getTranslation('available_answers', 'fr'), 				'de' => !empty($request->available_answers_de) ? $request->available_answers_de : $id->getTranslation('available_answers', 'de'), 			], 			'ordering' => $request->ordering, 			'question_group_id' => $request->question_group_id, 			'checkbox_max_answers_limit' => $request->checkbox_max_answers_limit, 			'question_id' => $request->question_id, 			'required' => $request->boolean('required'), 			'target' => $index, 		]);  		$questionService->handleBrandAwarenessProfessionTriggers($id, $request->validated('profession_ids') ?? []);  		if ($id->type == QuestionType::CheckboxWithAnswerPositivity->value) { 			$questionService->handleAvailableAnswersPositivity($id, $request); 		}  		return $this->redirectFromSave('questions-ba.list', [ 			'question_class' => $id->class, 			'client_survey_filter' => $id->client_survey_id, 			'survey_filter' => $id->category?->survey_id, 			'category_filter' => $id->category_id, 		]); 	}