Files
portal-api/app/Mail/ExpiryService.php
T
2026-10-05 09:30:24 +07:00

36 lines
1010 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
class ExpiryService extends TemplateMailable
{
use Queueable, SerializesModels;
/** @param int $template Không còn dùng — scenario cố định 'service_expiry'. Giữ tham số để không phá vỡ caller hiện tại. */
public function __construct($template = 0, public $data = []) {}
public function attachments(): array
{
return [];
}
protected function scenario(): string
{
return 'service_expiry';
}
protected function variables(): array
{
return [
'company_name' => $this->data['company_name'] ?? '',
'company_logo' => $this->data['company_logo'] ?? '',
'product_name' => $this->data['product_name'] ?? '',
'service_due_exp' => $this->data['service_due_exp'] ?? '',
'service_remaining' => $this->data['service_remaining'] ?? '',
];
}
}