app/Mail/DownloadInvoices.php

This commit is contained in:
Benjamin Beganović 2021-06-09 17:14:27 +02:00
parent 795a666885
commit e86463a27e
3 changed files with 15 additions and 2 deletions

View File

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

View File

@ -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;

View File

@ -0,0 +1,10 @@
@component('email.template.admin', ['logo' => $logo, 'settings' => $settings])
<div class="center">
<h1>{{ ctrans('texts.invoices_backup_subject') }}</h1>
<p>{{ ctrans('texts.download_timeframe') }}</p>
<a target="_blank" class="button" href="{{ $url }}">
{{ ctrans('texts.download') }}
</a>
</div>
@endcomponent