This commit is contained in:
珂珂 2024-11-15 17:33:12 +08:00
parent 505459af86
commit 75e3081a98
2 changed files with 4 additions and 12 deletions
packages/bydauto

View File

@ -25,17 +25,7 @@ public function toMail(object $notifiable): MailMessage
->subject("预约试驾线索通知")
->line("收到新的试驾预约信息:")
->line($table)
->line("=====")
->salutation("祝,工作愉快!");
// $text = sprintf("姓名:%s <br>电话:<a href='tel:%s'>%s</a>", $this->model->name, $this->model->mobile, $this->model->mobile);
// $text = new HtmlString($text);
// return (new MailMessage())
// ->subject("预约试驾线索通知")
// ->line("收到一条新的试驾预约信息")
// ->line($text)
// ->line("=====")
// ->salutation("祝,工作愉快!");
}
public function toArray(object $notifiable): array

View File

@ -1,10 +1,12 @@
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#000000">
<tr bgcolor="#ffffff">
<th width="40%">姓名</th>
<th width="10%">序号</th>
<th width="30%">姓名</th>
<th>电话</th>
</tr>
@foreach($items as $item)
@foreach($items as $sn => $item)
<tr bgcolor="#ffffff">
<td>{{ $sn + 1 }}</td>
<td>{{ $item->name }}</td>
<td>{{ $item->mobile }}</td>
</tr>