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,6 +3,7 @@
namespace App\Jobs\Mail\Customer;
use App\Mail\Customer\HostingAccountCreated;
use App\Services\InvoicePdfService;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
@@ -34,8 +35,10 @@ class HostingAccountCreatedJob implements ShouldQueue
}
try {
$invoice = app(InvoicePdfService::class)->attachment($this->data['invoice_id'] ?? null);
Mail::to($this->data['customer_email'])
->send(new HostingAccountCreated($this->data));
->send(new HostingAccountCreated($this->data, $invoice['pdf'] ?? null, $invoice['file_name'] ?? null));
} catch (\Throwable $e) {
Log::error('Không thể gửi email thông báo khởi tạo hosting: ' . $e->getMessage(), [
'customer_email' => $this->data['customer_email'] ?? null,