feat(emails): implemented sending invoice, estimates and payments as attachements

This commit is contained in:
Sebastian Cretu
2021-03-02 21:49:03 +01:00
parent 1932c5a75e
commit 2b78aacc83
15 changed files with 47 additions and 75 deletions

View File

@ -17,7 +17,7 @@
@slot('subcopy')
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$pdfData)
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/estimates/pdf/'.$data['estimate']['unique_hash'])])
View Estimate
@endcomponent

View File

@ -17,7 +17,7 @@
@slot('subcopy')
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$pdfData)
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/customer/invoices/pdf/'.$data['invoice']['unique_hash'])])
View Invoice
@endcomponent

View File

@ -17,7 +17,7 @@
@slot('subcopy')
@component('mail::subcopy')
{!! $data['body'] !!}
@if(!$pdfData)
@if(!$data['attach']['data'])
@component('mail::button', ['url' => url('/payments/pdf/'.$data['payment']['unique_hash'])])
View Payment
@endcomponent