Refactor VM resource specs resolution and enhance order payment success email with addon summary; add UpdateVmConfigJob for CPU/RAM updates

This commit is contained in:
baodev0
2026-07-17 14:00:42 +07:00
parent d9da3b5bb3
commit ad20cd5bdc
12 changed files with 458 additions and 33 deletions
+8 -7
View File
@@ -41,13 +41,14 @@ class OrderPaymentSuccess extends Mailable
return new Content(
view: 'emails.customer.order-payment-success',
with: [
'customerName' => $this->data['customer_name'] ?? 'Khách hàng',
'orderId' => $this->data['order_id'] ?? 'N/A',
'orderNum' => $this->data['order_num'] ?? 'N/A',
'amount' => $this->data['amount'] ?? 0,
'vmResults' => $this->data['vm_results'] ?? [],
'supportEmail' => config('mail.support_email', 'support@example.com'),
'supportPhone' => config('mail.support_phone', '1900-xxxx'),
'customerName' => $this->data['customer_name'] ?? 'Khách hàng',
'orderId' => $this->data['order_id'] ?? 'N/A',
'orderNum' => $this->data['order_num'] ?? 'N/A',
'amount' => $this->data['amount'] ?? 0,
'vmResults' => $this->data['vm_results'] ?? [],
'addonsSummary' => $this->data['addons_summary'] ?? [],
'supportEmail' => config('mail.support_email', 'support@example.com'),
'supportPhone' => config('mail.support_phone', '1900-xxxx'),
],
);
}