Add reminder email template
This commit is contained in:
parent
189dd396d6
commit
206f1336b1
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace Webkul\Admin\Mail;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
|
||||
class InvoiceOverdueReminder extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
/**
|
||||
* The customer instance.
|
||||
*
|
||||
* @var \Webkul\Customer\Contracts\Customer
|
||||
*/
|
||||
public $customer;
|
||||
|
||||
/**
|
||||
* The invoice instance.
|
||||
*
|
||||
* @var \Webkul\Sales\Contracts\Invoice
|
||||
*/
|
||||
public $invoice;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*
|
||||
* @param \Webkul\Customer\Contracts\Customer $customer
|
||||
* @param \Webkul\Sales\Contracts\Invoice $invoice
|
||||
*/
|
||||
public function __construct(
|
||||
$customer,
|
||||
$invoice
|
||||
)
|
||||
{
|
||||
$this->customer = $customer;
|
||||
|
||||
$this->invoice = $invoice;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function build()
|
||||
{
|
||||
return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name'])
|
||||
->to($this->customer->email)
|
||||
->subject(trans('shop::app.mail.invoice.reminder.subject'))
|
||||
->view('shop::emails.customer.invoice-reminder')->with(['customer' => $this->customer, 'invoice' => $this->invoice]);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
@component('shop::emails.layouts.master')
|
||||
|
||||
<div>
|
||||
<div style="text-align: center;">
|
||||
<a href="{{ config('app.url') }}">
|
||||
@include ('shop::emails.layouts.logo')
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div style="font-size:16px; color:#242424; font-weight:600; margin-top: 60px; margin-bottom: 15px">
|
||||
{{ __('shop::app.mail.customer.new.dear', ['customer_name' => $customer['name']]) }},
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{!! __('shop::app.mail.invoice.reminder.your-invoice-is-overdue', ['invoice' => $invoice->increment_id, 'time' => $invoice->created_at->diffForHumans()]) !!}
|
||||
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{!! __('shop::app.mail.invoice.reminder.please-make-your-payment-as-soon-as-possible') !!}
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{!! __('shop::app.mail.invoice.reminder.if-you-ve-already-paid-just-disregard-this-email') !!}
|
||||
</div>
|
||||
|
||||
<p style="font-size: 16px;color: #5E5E5E;line-height: 24px;">
|
||||
{{ __('shop::app.mail.customer.new.thanks') }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@endcomponent
|
||||
Loading…
Reference in New Issue