All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 56s
60 lines
1.2 KiB
PHP
60 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class PaymentReminderMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $fees;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*/
|
|
public function __construct($fees)
|
|
{
|
|
$this->fees = $fees;
|
|
}
|
|
|
|
/**
|
|
* Get the message envelope.
|
|
*/
|
|
public function envelope(): Envelope
|
|
{
|
|
$tenantName = tenant('name') ?? '系統';
|
|
return new Envelope(
|
|
subject: "【{$tenantName}】公共事業費繳費/逾期通知",
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the message content definition.
|
|
*/
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
markdown: 'emails.payment-reminder',
|
|
with: [
|
|
'fees' => $this->fees,
|
|
],
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get the attachments for the message.
|
|
*
|
|
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
|
|
*/
|
|
public function attachments(): array
|
|
{
|
|
return [];
|
|
}
|
|
}
|