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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user