Admin: DownloadInvoices / download_files.blade.php

This commit is contained in:
Benjamin Beganović 2021-06-07 18:02:44 +02:00
parent 3f5feacf16
commit 8b568d6147
2 changed files with 15 additions and 44 deletions

View File

@ -28,14 +28,11 @@ class DownloadInvoices extends Mailable
public function build() public function build()
{ {
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.download_files')) ->subject(ctrans('texts.download_files'))
->markdown( ->view('email.admin.download_files', [
'email.admin.download_files', 'url' => $this->file_path,
[ 'logo' => $this->company->present()->logo,
'url' => $this->file_path, 'whitelabel' => (bool)$this->company->account->isPaid(),
'logo' => $this->company->present()->logo, ]);
'whitelabel' => $this->company->account->isPaid() ? true : false,
]
);
} }
} }

View File

@ -1,36 +1,10 @@
@component('email.template.master', ['design' => 'light', 'settings' =>$settings]) @component('email.template.admin-light', ['logo' => $logo, 'settings' => $settings])
<div class="center">
<h1>{{ ctrans('texts.download') }}</h1>
<p>{{ ctrans('texts.download_timeframe') }}</p>
@slot('header') <a target="_blank" class="button" href="{{ $url }}">
@component('email.components.header', ['p' => '', 'logo' => $logo]) {{ ctrans('texts.download') }}
@lang('texts.download') </a>
@endcomponent </div>
@endcomponent
@endslot
@if(isset($greeting))
<p style="padding-top:20px">{{ $greeting }}</p>
@endif
<p style="padding-top:20px">
@lang('texts.download_timeframe')
</p>
<p style="padding-top:20px">
@component('email.components.button', ['url' => $url])
@lang('texts.download')
@endcomponent
</p>
@slot('signature')
InvoiceNinja (contact@invoiceninja.com)
@endslot
@if(!$whitelabel)
@slot('footer')
@component('email.components.footer', ['url' => 'https://invoiceninja.com', 'url_text' => '&copy; InvoiceNinja'])
For any info, please visit InvoiceNinja.
@endcomponent
@endslot
@endif
@endcomponent