diff --git a/app/Mail/DownloadInvoices.php b/app/Mail/DownloadInvoices.php index 006703f1f382..cb6c6e45cc14 100644 --- a/app/Mail/DownloadInvoices.php +++ b/app/Mail/DownloadInvoices.php @@ -28,14 +28,11 @@ class DownloadInvoices extends Mailable public function build() { return $this->from(config('mail.from.address'), config('mail.from.name')) - ->subject(ctrans('texts.download_files')) - ->markdown( - 'email.admin.download_files', - [ - 'url' => $this->file_path, - 'logo' => $this->company->present()->logo, - 'whitelabel' => $this->company->account->isPaid() ? true : false, - ] - ); + ->subject(ctrans('texts.download_files')) + ->view('email.admin.download_files', [ + 'url' => $this->file_path, + 'logo' => $this->company->present()->logo, + 'whitelabel' => (bool)$this->company->account->isPaid(), + ]); } } diff --git a/resources/views/email/admin/download_files.blade.php b/resources/views/email/admin/download_files.blade.php index a73eace603fb..b0239e5aa9b7 100644 --- a/resources/views/email/admin/download_files.blade.php +++ b/resources/views/email/admin/download_files.blade.php @@ -1,36 +1,10 @@ -@component('email.template.master', ['design' => 'light', 'settings' =>$settings]) +@component('email.template.admin-light', ['logo' => $logo, 'settings' => $settings]) +
{{ ctrans('texts.download_timeframe') }}
-@slot('header') - @component('email.components.header', ['p' => '', 'logo' => $logo]) - @lang('texts.download') - @endcomponent - -@endslot - - -@if(isset($greeting)) -{{ $greeting }}
-@endif - --@lang('texts.download_timeframe') -
- -- @component('email.components.button', ['url' => $url]) - @lang('texts.download') - @endcomponent -
- -@slot('signature') - InvoiceNinja (contact@invoiceninja.com) -@endslot - -@if(!$whitelabel) - @slot('footer') - @component('email.components.footer', ['url' => 'https://invoiceninja.com', 'url_text' => '© InvoiceNinja']) - For any info, please visit InvoiceNinja. - @endcomponent - @endslot -@endif -@endcomponent \ No newline at end of file + + {{ ctrans('texts.download') }} + +