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:
baodev0
2026-10-19 16:37:56 +07:00
co-authored by Claude Sonnet 5.5
parent ea9a53f742
commit 25f23d541e
134 changed files with 4926 additions and 185 deletions
+3
View File
@@ -7,6 +7,7 @@ use App\Models\Invoice;
use App\Services\Email\EmailTemplateService;
use App\Support\AutoEmailGate;
use App\Support\EmailTemplateShell;
use App\Support\InvoiceLookup;
use Carbon\Carbon;
/**
@@ -116,6 +117,8 @@ class InvoiceReminderService
'paid_row' => (int) ($invoice->amount_paid ?? 0) > 0
? EmailTemplateShell::row('Đã thanh toán', number_format((int) $invoice->amount_paid, 0, ',', '.') . ' VNĐ')
: '',
'lookup_row' => InvoiceLookup::emailRow($invoice),
'lookup_note' => InvoiceLookup::emailNote($invoice),
'login_url' => rtrim((string) config('app.frontend_url', ''), '/') . '/dang-nhap',
'support_email' => 'support@tgs.com.vn',
'support_phone' => '(028) 7309. 7379',