mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix mail templates
This commit is contained in:
@ -1,10 +1,32 @@
|
||||
@component('mail::message')
|
||||
Check your estimate.
|
||||
@component('mail::layout')
|
||||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => ''])
|
||||
@if($data['company']['logo'])
|
||||
<img class="header-logo" src="{{asset($data['company']['logo'])}}" alt="{{$data['company']['name']}}">
|
||||
@else
|
||||
{{$data['company']['name']}}
|
||||
@endif
|
||||
@endcomponent
|
||||
@endslot
|
||||
|
||||
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
|
||||
Get your estimate
|
||||
{{-- Body --}}
|
||||
<!-- Body here -->
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
You have received a new estimate from <span class="company-name">{{$data['company']['name']}}</span>
|
||||
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
|
||||
View Estimate
|
||||
@endcomponent
|
||||
@endcomponent
|
||||
@endslot
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
Thanks,<br>
|
||||
{{ config('app.name') }}
|
||||
@endcomponent
|
||||
|
||||
@ -1,11 +1,31 @@
|
||||
@component('mail::message')
|
||||
@if (! empty($logo))
|
||||
# {{ $company }}
|
||||
@else
|
||||
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
|
||||
Get your invoice
|
||||
@endcomponent
|
||||
@component('mail::layout')
|
||||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => ''])
|
||||
@if($data['company']['logo'])
|
||||
<img class="header-logo" src="{{asset($data['company']['logo'])}}" alt="{{$data['company']['name']}}">
|
||||
@else
|
||||
{{$data['company']['name']}}
|
||||
@endif
|
||||
@endcomponent
|
||||
@endslot
|
||||
|
||||
{{-- Thanks,<br>
|
||||
{{ config('app.name') }} --}}
|
||||
{{-- Body --}}
|
||||
<!-- Body here -->
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
You have received a new invoice from <span class="company-name">{{$data['company']['name']}}</span>
|
||||
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
|
||||
View Invoice
|
||||
@endcomponent
|
||||
@endcomponent
|
||||
@endslot
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
Powered by <a class="footer-link" href="https://craterapp.com">Crater</a>
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
|
||||
Reference in New Issue
Block a user