public function handleLocationsAndDepartmentUpdate(Request $request, ClientSurvey $survey): void 	{ 		$locations_values = Arr::where($request->locations ?? [], function ($value, $key) { 			return Str::isUuid($key); 		});  		$locations = $survey->locations()->whereIn('id', array_keys($locations_values))->get();  		foreach ($locations as $location) { 			$location->update([ 				'title' => [ 					'en' => $locations_values[$location->getKey()]['title_en'] ?? $location->getTranslation('title', 'en'), 					'hr' => $locations_values[$location->getKey()]['title_hr'] ?? $location->getTranslation('title', 'hr'), 					'bs' => $locations_values[$location->getKey()]['title_bs'] ?? $location->getTranslation('title', 'bs'), 					'mk' => $locations_values[$location->getKey()]['title_mk'] ?? $location->getTranslation('title', 'mk'), 					'sl' => $locations_values[$location->getKey()]['title_sl'] ?? $location->getTranslation('title', 'sl'), 					'sr' => $locations_values[$location->getKey()]['title_sr'] ?? $location->getTranslation('title', 'sr'), 					'fr' => $locations_values[$location->getKey()]['title_fr'] ?? $location->getTranslation('title', 'fr'), 					'de' => $locations_values[$location->getKey()]['title_de'] ?? $location->getTranslation('title', 'de'), 				], 			]); 		}  		$departments_values = Arr::where($request->departments ?? [], function ($value, $key) { 			return Str::isUuid($key); 		});  		$departments = $survey->departments()->whereIn('id', array_keys($departments_values))->get();  		foreach ($departments as $department) { 			$department->update([ 				'title' => [ 					'en' => $departments_values[$department->getKey()]['title_en'] ?? $department->getTranslation('title', 'en'), 					'hr' => $departments_values[$department->getKey()]['title_hr'] ?? $department->getTranslation('title', 'hr'), 					'bs' => $departments_values[$department->getKey()]['title_bs'] ?? $department->getTranslation('title', 'bs'), 					'mk' => $departments_values[$department->getKey()]['title_mk'] ?? $department->getTranslation('title', 'mk'), 					'sl' => $departments_values[$department->getKey()]['title_sl'] ?? $department->getTranslation('title', 'sl'), 					'sr' => $departments_values[$department->getKey()]['title_sr'] ?? $department->getTranslation('title', 'sr'), 					'fr' => $departments_values[$department->getKey()]['title_fr'] ?? $department->getTranslation('title', 'fr'), 					'de' => $departments_values[$department->getKey()]['title_de'] ?? $department->getTranslation('title', 'de'), 				], 			]); 		} 	}