1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

ACHVerificationNotification:

- Pass $company into view
- Update view to use client layout
- Fixes for client layout / whitelabel handling
This commit is contained in:
Benjamin Beganović 2021-06-11 15:52:28 +02:00
parent fd58f1cadb
commit 4cba96d973
3 changed files with 17 additions and 6 deletions

View File

@ -47,6 +47,7 @@ class ACHVerificationNotification extends Mailable
->view('email.gateways.ach-verification-notification', [
'logo' => $this->company->present()->logo(),
'settings' => $this->company->settings,
'company' => $this->company,
]);
}
}

View File

@ -1,4 +1,4 @@
@component('email.template.admin', ['logo' => $logo, 'settings' => $settings])
@component('email.template.client', ['logo' => $logo, 'settings' => $settings, 'company' => $company])
<div class="center">
<h1>{{ ctrans('texts.ach_verification_notification_label') }}</h1>
<p>{{ ctrans('texts.ach_verification_notification') }}</p>

View File

@ -111,15 +111,21 @@
</tr>
<tr>
<td>
<div style="border: 1px solid #c2c2c2; border-top: none; border-bottom: none;" id="content">
<div style="padding-top: 10px;"></div>
<div style="border: 1px solid #c2c2c2; border-top: none; border-bottom: none; padding: 20px;" id="content">
<div style="padding-top: 10px;"></div>
{{ $slot }}
</div>
{{ $slot}}
<div>
<a href="#"
style="display: inline-block;background-color: #0091ea; color: #ffffff; text-transform: uppercase;letter-spacing: 2px; text-decoration: none; font-size: 13px; font-weight: 600;">
</a>
</div>
</div>
</td>
</tr>
@if(isset($company) & $company instanceof \App\Models\Company)
@if(isset($company) && $company instanceof \App\Models\Company)
<tr>
<td>
<div class="dark-bg dark-text-white"
@ -147,6 +153,10 @@
font-family: Verdana, Geneva, Tahoma, sans-serif;"{{ date('Y') }} Invoice Ninja, All
Rights Reserved
</p>
@else
<p style="text-align: center; color: #ffffff; font-size: 10px; font-family: Verdana, Geneva, Tahoma, sans-serif;">
© {{ date('Y') }} Invoice Ninja, All Rights Reserved
</p>
@endif
</div>
</td>