diff --git a/packages/Webkul/Admin/src/Mail/InvoiceOverdueReminder.php b/packages/Webkul/Admin/src/Mail/InvoiceOverdueReminder.php new file mode 100644 index 000000000..dabe48271 --- /dev/null +++ b/packages/Webkul/Admin/src/Mail/InvoiceOverdueReminder.php @@ -0,0 +1,56 @@ +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]); + } +} \ No newline at end of file diff --git a/packages/Webkul/Shop/src/Resources/views/emails/customer/invoice-remainder.php b/packages/Webkul/Shop/src/Resources/views/emails/customer/invoice-remainder.php new file mode 100644 index 000000000..366a232b1 --- /dev/null +++ b/packages/Webkul/Shop/src/Resources/views/emails/customer/invoice-remainder.php @@ -0,0 +1,33 @@ +@component('shop::emails.layouts.master') + +
+
+ + @include ('shop::emails.layouts.logo') + +
+ +
+ {{ __('shop::app.mail.customer.new.dear', ['customer_name' => $customer['name']]) }}, + +
+ +
+ {!! __('shop::app.mail.invoice.reminder.your-invoice-is-overdue', ['invoice' => $invoice->increment_id, 'time' => $invoice->created_at->diffForHumans()]) !!} + +
+ +
+ {!! __('shop::app.mail.invoice.reminder.please-make-your-payment-as-soon-as-possible') !!} +
+ +
+ {!! __('shop::app.mail.invoice.reminder.if-you-ve-already-paid-just-disregard-this-email') !!} +
+ +

+ {{ __('shop::app.mail.customer.new.thanks') }} +

+
+ +@endcomponent \ No newline at end of file