Merge pull request #5950 from turbo124/v5-develop

Fixes for company import mailer
This commit is contained in:
David Bomba 2021-06-08 10:43:04 +10:00 committed by GitHub
commit 81c2230296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,12 +53,11 @@ class CompanyImportFailure extends Mailable
{ {
$this->settings = $this->company->settings; $this->settings = $this->company->settings;
$this->logo = $this->company->present()->logo(); $this->logo = $this->company->present()->logo();
$this->title = ctrans('texts.max_companies'); $this->title = ctrans('texts.company_import_failure_subject', ['company' => $this->company->present()->name()]);
$this->message = ctrans('texts.max_companies_desc');
$this->whitelabel = $this->company->account->isPaid(); $this->whitelabel = $this->company->account->isPaid();
return $this->from(config('mail.from.address'), config('mail.from.name')) return $this->from(config('mail.from.address'), config('mail.from.name'))
->subject(ctrans('texts.company_import_failure_subject')) ->subject(ctrans('texts.company_import_failure_subject', ['company' => $this->company->present()->name()]))
->view('email.migration.max_companies'); ->view('email.import.import_failure');
} }
} }