2019-08-05 14:53:48 +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 NewCustomerNotification extends Mailable
|
|
|
|
|
{
|
|
|
|
|
use Queueable, SerializesModels;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new message instance.
|
2020-03-05 05:34:57 +00:00
|
|
|
*
|
|
|
|
|
* @param \Webkul\Customer\Contracts\Customer $order
|
2020-03-05 13:37:08 +00:00
|
|
|
* @param string $password
|
2019-08-05 14:53:48 +00:00
|
|
|
* @return void
|
|
|
|
|
*/
|
2020-03-05 05:34:57 +00:00
|
|
|
public function __construct(
|
2022-04-01 14:57:11 +00:00
|
|
|
public $customer,
|
|
|
|
|
public $password
|
2020-03-05 05:34:57 +00:00
|
|
|
)
|
2019-08-05 14:53:48 +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($this->customer->email)
|
|
|
|
|
->subject(trans('shop::app.mail.customer.new.subject'))
|
|
|
|
|
->view('shop::emails.customer.new-customer')->with([
|
|
|
|
|
'customer' => $this->customer,
|
|
|
|
|
'password' => $this->password,
|
|
|
|
|
]);
|
2019-08-05 14:53:48 +00:00
|
|
|
}
|
|
|
|
|
}
|