feat(billing): renewals, coupons, VAT numbering, billing cycles and invoice payment tracking
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
ea9a53f742
commit
25f23d541e
@@ -71,7 +71,11 @@ class DomainOrderController extends Controller
|
||||
'type' => 'domain_order_new',
|
||||
'title' => 'Đơn đăng ký tên miền mới',
|
||||
'body' => "Khách hàng {$customer->fullname} vừa đặt mua tên miền {$domainName} (#{$orderNum})",
|
||||
'link' => '/domain-orders',
|
||||
'link' => '/domain-orders/' . $result['order']->id,
|
||||
'data' => [
|
||||
'order_id' => $result['order']->id,
|
||||
'order_num' => $orderNum,
|
||||
],
|
||||
]);
|
||||
|
||||
$setting = Setting::where('key', 'setting')->first();
|
||||
@@ -105,7 +109,7 @@ class DomainOrderController extends Controller
|
||||
$orderUrl = rtrim(config('app.frontend_url', ''), '/') . '/don-hang';
|
||||
|
||||
Mail::to($customer->email)->send(
|
||||
new DomainOrderReceivedNotification([...$mailData, 'order_url' => $orderUrl])
|
||||
new DomainOrderReceivedNotification([...$mailData, 'order_url' => $orderUrl, 'invoice_id' => $result['invoice']->id])
|
||||
);
|
||||
} catch (\Throwable $e) {
|
||||
Log::error('DomainOrderController: không thể gửi email khách hàng: ' . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user