Move email/ resources to mail/, added invoice generated email to admin, updated email template

This commit is contained in:
2024-08-03 10:06:25 +10:00
parent f8453ae391
commit 0469d64577
40 changed files with 439 additions and 213 deletions

View File

@@ -1,7 +1,7 @@
@component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header',['site'=>$site])
@component('mail::header',['site'=>$site,'subheading'=>$subheading ?? NULL])
{{ $heading }}
@endcomponent
@endslot
@@ -9,11 +9,11 @@
{{-- Body --}}
{{ $slot }}
{{-- Subcopy --}}
@isset($subcopy)
@slot('subcopy')
@component('mail::subcopy')
{{ $subcopy }}
{{-- Sub Content --}}
@isset($subcontent)
@slot('subcontent')
@component('mail::subcontent')
{{ $subcontent }}
@endcomponent
@endslot
@endisset
@@ -21,11 +21,9 @@
{{-- Footer --}}
@slot('footer')
@component('mail::footer')
<div class="fixedw" style="text-align: right; font-size: 0.8em;">
{{ config('mail.from.name') }}<br>
{!! $site->address->join('<br>') !!}<br>
{{ $site->site_email }}
</div>
@endcomponent
@endslot
@endcomponent
@endcomponent