company = $company; $this->contact = $contact; $this->code = $code; } /** * Build the message. * * @return $this */ public function build() { App::setLocale($this->company->locale()); return $this->from(config('mail.from.address'), config('mail.from.name')) ->subject(ctrans('texts.otp_code_subject')) ->text('email.admin.generic_text') ->view('email.admin.generic') ->with([ 'settings' => $this->company->settings, 'logo' => $this->company->present()->logo(), 'title' => ctrans('texts.otp_code_subject'), 'content' => ctrans('texts.otp_code_body', ['code' => $this->code]), 'whitelabel' => $this->company->account->isPaid(), 'template' => $this->company->account->isPremium() ? 'email.template.admin_premium' : 'email.template.admin', ]); } }