diff --git a/app/Mail/DownloadInvoices.php b/app/Mail/DownloadInvoices.php index cb6c6e45cc14..5dc1b5808cd0 100644 --- a/app/Mail/DownloadInvoices.php +++ b/app/Mail/DownloadInvoices.php @@ -29,10 +29,12 @@ class DownloadInvoices extends Mailable { return $this->from(config('mail.from.address'), config('mail.from.name')) ->subject(ctrans('texts.download_files')) - ->view('email.admin.download_files', [ + ->view('email.admin.download_invoices', [ 'url' => $this->file_path, 'logo' => $this->company->present()->logo, - 'whitelabel' => (bool)$this->company->account->isPaid(), + 'whitelabel' => $this->company->account->isPaid() ? true : false, + 'settings' => $this->company->settings, + 'greeting' => $this->company->present()->name(), ]); } } diff --git a/resources/lang/en/texts.php b/resources/lang/en/texts.php index 14cf69852ddb..f3a8e3b9d1b0 100644 --- a/resources/lang/en/texts.php +++ b/resources/lang/en/texts.php @@ -4258,6 +4258,7 @@ $LANG = array( 'ach_verification_notification' => 'Connecting bank accounts require verification. Stripe will automatically sends two small deposits for this purpose. These deposits take 1-2 business days to appear on the customer\'s online statement.', 'login_link_requested_label' => 'Login link requested', 'login_link_requested' => 'There was a request to login using link. If you did not request this, it\'s safe to ignore it.', + 'invoices_backup_subject' => 'Your invoices are ready for download', ); return $LANG; diff --git a/resources/views/email/admin/download_invoices.blade.php b/resources/views/email/admin/download_invoices.blade.php new file mode 100644 index 000000000000..5a3bbb14c483 --- /dev/null +++ b/resources/views/email/admin/download_invoices.blade.php @@ -0,0 +1,10 @@ +@component('email.template.admin', ['logo' => $logo, 'settings' => $settings]) +
{{ ctrans('texts.download_timeframe') }}
+ + + {{ ctrans('texts.download') }} + +