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.
yxbd-fangke/app/Mail/VisitReservationSubmittedTo...

37 lines
970 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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');
}
}