You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 访客提交预约时通知被访人,字段与 Submail 模板 QXPs33 的 vars 一致:date、name(访客)、uname(被访人).
|
|
|
|
|
|
*/
|
|
|
|
|
|
class VisitReservationSubmittedToHost extends Mailable
|
|
|
|
|
|
{
|
|
|
|
|
|
use SerializesModels;
|
|
|
|
|
|
|
|
|
|
|
|
/** @var string 到访日期,对应短信 vars.date */
|
|
|
|
|
|
public $visitDate;
|
|
|
|
|
|
|
|
|
|
|
|
/** @var string 访客姓名,对应短信 vars.name */
|
|
|
|
|
|
public $visitorName;
|
|
|
|
|
|
|
|
|
|
|
|
/** @var string 被访人姓名,对应短信 vars.uname */
|
|
|
|
|
|
public $hostName;
|
|
|
|
|
|
|
|
|
|
|
|
public function __construct(string $visitDate, string $visitorName, string $hostName)
|
|
|
|
|
|
{
|
|
|
|
|
|
$this->visitDate = $visitDate;
|
|
|
|
|
|
$this->visitorName = $visitorName;
|
|
|
|
|
|
$this->hostName = $hostName;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function build()
|
|
|
|
|
|
{
|
|
|
|
|
|
return $this->subject('访客预约通知')
|
|
|
|
|
|
->view('mail.visit-reservation-submitted-to-host');
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|