* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com) */ class NewRefundNotification extends Mailable { use Queueable, SerializesModels; /** * The refund instance. * * @var \Webkul\Sales\Contracts\Refund */ public $refund; /** * Create a new message instance. * * @param \Webkul\Sales\Contracts\Refund $refund * @return void */ public function __construct($refund) { $this->refund = $refund; } /** * Build the message. * * @return $this */ public function build() { $order = $this->refund->order; return $this->to($order->customer_email, $order->customer_full_name) ->subject(trans('shop::app.mail.refund.subject', ['order_id' => $order->increment_id])) ->view('shop::emails.sales.new-refund'); } }