38 lines
1.2 KiB
PHP
38 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Mail\Customer;
|
|
|
|
use App\Mail\TemplateMailable;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class DomainOrderReceivedNotification extends TemplateMailable implements ShouldQueue
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(
|
|
protected array $data,
|
|
) {}
|
|
|
|
protected function scenario(): string
|
|
{
|
|
return 'domain_order_received';
|
|
}
|
|
|
|
protected function variables(): array
|
|
{
|
|
return [
|
|
'customer_name' => $this->data['customer_name'] ?? 'Quý khách',
|
|
'company_name' => $this->data['company_name'] ?? config('app.name'),
|
|
'domain_name' => $this->data['domain_name'] ?? '',
|
|
'order_num' => $this->data['order_num'] ?? '',
|
|
'order_total' => $this->data['order_total'] ?? '',
|
|
'created_at' => $this->data['created_at'] ?? '',
|
|
'order_url' => $this->data['order_url'] ?? '',
|
|
'support_email' => $this->data['support_email'] ?? 'support@tgs.com.vn',
|
|
'support_phone' => $this->data['support_phone'] ?? '(028) 7309. 7379',
|
|
];
|
|
}
|
|
}
|