2019-04-30 07:25:11 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Webkul\Admin\Mail;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
|
|
|
|
|
|
class NewAdminNotification extends Mailable
|
|
|
|
|
{
|
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
2020-03-05 05:34:57 +00:00
|
|
|
*
|
|
|
|
|
* @param \Webkul\Sales\Contracts\Order $order
|
2019-04-30 07:25:11 +00:00
|
|
|
* @return void
|
|
|
|
|
*/
|
2022-04-01 14:57:11 +00:00
|
|
|
public function __construct(public $order)
|
2019-04-30 07:25:11 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Build the message.
|
|
|
|
|
*
|
|
|
|
|
* @return $this
|
|
|
|
|
*/
|
|
|
|
|
public function build()
|
|
|
|
|
{
|
2020-03-17 10:40:47 +00:00
|
|
|
return $this->from(core()->getSenderEmailDetails()['email'], core()->getSenderEmailDetails()['name'])
|
2022-08-06 15:11:23 +00:00
|
|
|
->to(core()->getAdminEmailDetails()['email'])
|
|
|
|
|
->subject(trans('shop::app.mail.order.subject'))
|
|
|
|
|
->view('shop::emails.sales.new-admin-order');
|
2019-04-30 07:25:11 +00:00
|
|
|
}
|
|
|
|
|
}
|