Merge pull request #407 from sebastiancretu/send_inv_est_pay_as_attachment

Send invoices, estimates and payments as attachments
This commit is contained in:
Mohit Panjwani
2021-03-22 12:06:06 +05:30
committed by GitHub
19 changed files with 207 additions and 21 deletions

View File

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

View File

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

View File

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