public function toArray($request): array 	{ 		$lang = $request->lang ?? DomainLanguages::getDefaultLanguage();  		return [ 			'id' => $this->getKey(), 			'client_survey_id' => $this->client_survey_id, 			'filled' => $this->filled, 			'draft' => $this->draft, 			'code' => $this->code, 			'default_language' => $this->default_language->value, 			'switch_basic_and_additional_question_order' => $this->survey->switch_basic_and_additional_question_order, 			'demographic_answers_required' => $this->survey->demographic_answers_required, 			'demographic_first' => $this->survey->demographic_first, 			'departments_first' => $this->survey->departments_first, 			'locations_first' => $this->survey->locations_first, 			'main_questions' => QuestionResource::collection($this->scrambledQuestions), 			'negative_questions' => QuestionResource::collection($this->negativeQuestions), 			'extra_questions' => QuestionResource::collection($this->survey->extraQuestions), 			'demographic_questions' => QuestionResource::collection($this->survey->demographicQuestions), 			'locations' => LocationResource::collection($this->survey->locations), 			'locations_description' => $this->survey->getTranslation('locations_description', $lang), 			'location_answer_required' => $this->survey->location_answer_required, 			'departments' => DepartmentResource::collection($this->survey->departments), 			'departments_description' => $this->survey->getTranslation('departments_description', $lang), 			'department_answer_required' => $this->survey->department_answer_required, 			'created_at' => formatTimestamp($this->created_at), 			'updated_at' => formatTimestamp($this->updated_at), 		]; 	}