Skip to content

Commit 42b1dcb

Browse files
committed
Add mail-layout component for email templates
1 parent e799c5a commit 42b1dcb

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<x-mail::layout>
2+
{{-- Header --}}
3+
<x-slot:header>
4+
<tr>
5+
<td class="header">
6+
<a href="{{ \Fleetbase\Support\Utils::consoleUrl() }}" style="display: inline-block;">
7+
<img src="{{ \Fleetbase\Models\Setting::getBrandingLogoUrl() }}" alt="{{ config('app.name') }} Logo" class="logo" style="height: 35px; width: 200px; max-height: 60px; max-width: 250px;">
8+
</a>
9+
</td>
10+
</tr>
11+
</x-slot:header>
12+
13+
{{-- Body --}}
14+
{{ $slot }}
15+
16+
{{-- Subcopy --}}
17+
@isset($subcopy)
18+
<x-slot:subcopy>
19+
<x-mail::subcopy>
20+
{{ $subcopy }}
21+
</x-mail::subcopy>
22+
</x-slot:subcopy>
23+
@endisset
24+
25+
{{-- Footer --}}
26+
<x-slot:footer>
27+
<x-mail::footer>
28+
© {{ date('Y') }} {{ config('app.name') }}. @lang('All Rights Reserved.')
29+
</x-mail::footer>
30+
</x-slot:footer>
31+
</x-mail::layout>

0 commit comments

Comments
 (0)