43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class CreateHosting extends TemplateMailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
/** @param int $template Không còn dùng — scenario cố định 'hosting_information'. 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 'hosting_information';
|
|
}
|
|
|
|
protected function variables(): array
|
|
{
|
|
return [
|
|
'company_name' => $this->data['company_name'] ?? '',
|
|
'company_logo' => $this->data['company_logo'] ?? '',
|
|
'client_name' => $this->data['client_name'] ?? '',
|
|
'product_name' => $this->data['product_name'] ?? '',
|
|
'product_billing' => $this->data['product_billing'] ?? '',
|
|
'product_price' => $this->data['product_price'] ?? '',
|
|
'service_host' => $this->data['service_host'] ?? '',
|
|
'service_username'=> $this->data['service_username'] ?? '',
|
|
'service_password'=> $this->data['service_password'] ?? '',
|
|
'service_due_exp' => $this->data['service_due_exp'] ?? '',
|
|
'ftp_account' => $this->data['ftp_account'] ?? '',
|
|
'ftp_password' => $this->data['ftp_password'] ?? '',
|
|
];
|
|
}
|
|
}
|