public function getEmailTemplate(EmailType $type): EmailTemplate 	{ 		$survey_email_template = $this->client_survey->emailTemplates()->where('type', $type)->first();  		if ($survey_email_template) { 			return $this->client_survey->emailTemplates()->where('type', $type)->first(); 		}  		return EmailTemplate::base()->where('type', $type)->firstOrFail(); 	}