37 lines
977 B
PHP
37 lines
977 B
PHP
<?php
|
|
|
|
namespace Webkul\Admin\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class OrderCommentNotification extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @param \Webkul\Sales\Contracts\OrderComment $comment
|
|
* @return void
|
|
*/
|
|
public function __construct(public $comment)
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name'])
|
|
->to($this->comment->order->customer_email, $this->comment->order->customer_full_name)
|
|
->subject(trans('shop::app.mail.order.comment.subject', ['order_id' => $this->comment->order->increment_id]))
|
|
->view('shop::emails.sales.new-order-comment');
|
|
}
|
|
}
|