feat: email gửi tay/nhắc gia hạn, gói hosting, sửa dữ liệu sản phẩm

- Gửi email theo template cho 1 khách, tab lịch sử email, nhắc gia hạn dịch vụ hàng loạt
- Mail lưu from/bcc/sent_by; mẫu MARKETING và mẫu cũ trong TemplateSeeder
- Gói hosting: giới hạn, trạng thái, lấy plan Plesk qua CLI gateway
- Backfill payment_method và ngày đơn hàng còn thiếu
- Bổ sung field CPU/RAM/Disk/Băng thông cho loại sản phẩm vps và cloud

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
baodev0
2026-10-09 11:32:05 +07:00
co-authored by Claude Opus 5.5
parent 8651dde6b1
commit 30898ea46f
59 changed files with 1771 additions and 108 deletions
@@ -28,6 +28,8 @@ trait HandlesInvoicePayments
// hoá đơn ghi nhận trả một phần và chưa kích hoạt dịch vụ.
$validated = $request->validate([
'received_amount' => 'nullable|integer|min:1',
'recording_mode' => 'nullable|string|in:manual,automatic',
'note' => 'nullable|string|max:1000',
]);
try {
@@ -37,7 +39,9 @@ trait HandlesInvoicePayments
$invoice = $this->invoicePaymentService->markPaidByAdmin(
$invoice,
auth()->id(),
method: $validated['recording_mode'] ?? 'manual',
receivedAmount: $validated['received_amount'] ?? null,
note: $validated['note'] ?? '',
);
DB::commit();