public function update(StoreEmailTemplates $request): RedirectResponse 	{ 		$request->validate([ 			'survey_type_value' => ['nullable', 'integer', new Enum(SurveyType::class)], 		]);  		EmailTemplate::handleAdminTypes(function (DomainLanguages $language, EmailType $type) use ($request) { 			EmailTemplate::base()->updateOrCreate([ 				'type' => $type->value, 			], [ 				'type' => $type->value, 				'content' => [ 					$language->value => $request[$type->name() . '_email_' . $language->value], 				], 				'subject' => [ 					$language->value => $request[$type->name() . '_subject_' . $language->value], 				], 			]); 		}, $request->survey_type_value);  		return $this->redirectFromSave('email-templates.add'); 	}