sarga/packages/Webkul/Admin/src/Mail/NewCustomerNotification.php

57 lines
1.2 KiB
PHP
Raw Normal View History

<?php
namespace Webkul\Admin\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
/**
* New Admin Mail class
*
* @author Rahul Shukla <rahulshukla.symfony517@webkul.com>
* @copyright 2018 Webkul Software Pvt Ltd (http://www.webkul.com)
*/
class NewCustomerNotification extends Mailable
{
use Queueable, SerializesModels;
/**
* The customer instance.
*
* @var customer
*/
public $customer;
/**
* The password instance.
*
* @var password
*/
public $password;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($customer, $password)
{
$this->customer = $customer;
$this->password = $password;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->to($this->customer->email)
2019-09-13 10:11:38 +00:00
->subject(trans('shop::app.mail.customer.new.subject'))
->view('shop::emails.customer.new-customer')->with(['customer' => $this->customer, 'password' => $this->password]);
}
}