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()
{
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(),
]);
}
}

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')
@component('email.components.header', ['p' => '', 'logo' => $logo])
@lang('texts.download')
@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
<a target="_blank" class="button" href="{{ $url }}">
{{ ctrans('texts.download') }}
</a>
</div>
@endcomponent