@php $companyLogo = $companyLogo ?? setting('setting.logo') ?? ''; $companyName = $companyName ?? 'CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ'; $companyAddress = $companyAddress ?? 'Số 128/38 đường Tân Hương, Phường Phú Thọ Hòa, Thành phố Hồ Chí Minh, Việt Nam'; $companyTaxCode = $companyTaxCode ?? '0318443116'; $cfg = array_merge([ 'show_logo' => true, 'show_company_info' => true, 'show_customer_info' => true, 'show_items_table' => true, 'show_summary' => true, 'footer_text' => '', 'footer_note' => '', ], $cfg ?? []); $invoiceDate = $invoice->created_at ?? now(); $taxBase = ($invoice->total ?? 0) - ($invoice->tax ?? 0); $taxRate = ($taxBase > 0 && ($invoice->tax ?? 0) > 0) ? round($invoice->tax / $taxBase * 100) : 0; @endphp
@if(($cfg['show_logo'] ?? true) && $companyLogo)
@endif
|
HÓA ĐƠN GIÁ TRỊ GIA TĂNG(VAT INVOICE)Ngày (Date) {{ $invoiceDate?->format('d') ?? '' }} tháng (month) {{ $invoiceDate?->format('m') ?? '' }} năm (year) {{ $invoiceDate?->format('Y') ?? '' }} Mã CQT (Code): |
Ký hiệu (Serial): 1C26TCP
Số (No.):
{{ $invoice->invoice_number ?? ' |
| Số tài khoản (Bank account): | 7379868 Ngân hàng TMCP Á Châu (ACB) Chi nhánh TP. Hồ Chí Minh |
| 797379868 Ngân hàng TMCP Quân Đội (MB) Chi nhánh Phú Nhuận |
| STT (No) |
Tên hàng hóa, dịch vụ (Name of goods and services) |
Đơn vị tính (Unit) |
Số lượng (Quantity) |
Đơn giá (Unit price) |
Thành tiền (Amount) |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item->description ?? ($item->product?->name ?? 'Dịch vụ') }} | {{ ($item->months && $item->months > 0) ? 'Tháng' : 'Lần' }} | {{ number_format($item->quantity ?? 1, 2, ',', '.') }} | {{ number_format($item->unit_price, 0, ',', '.') }} | {{ number_format($item->total_price, 0, ',', '.') }} |
| Cộng tiền hàng (Total amount excl. VAT): | {{ number_format($invoice->sub_total, 0, ',', '.') }} | ||||
| Giảm giá (Discount): | -{{ number_format($invoice->discount_amount, 0, ',', '.') }} | ||||
| Thuế suất GTGT (VAT rate): | {{ $taxRate > 0 ? $taxRate . '%' : 'Không áp dụng' }} | Tiền thuế GTGT (VAT amount): | {{ number_format($invoice->tax, 0, ',', '.') }} | ||
| Tổng tiền thanh toán (Total amount): | {{ number_format($invoice->total, 0, ',', '.') }} | ||||
| Số tiền viết bằng chữ (Total amount in words): {{ \App\Helpers\NumberToWords::convert((int) $invoice->total) }}. | |||||
|
Người mua hàng (Buyer)
(Chữ ký số nếu có)
(Digital signature if any)
{{ $customer?->fullname ?? '' }}
|
Người bán hàng (Seller)
(Chữ ký điện tử, Chữ ký số)
(E-signature, Digital signature)
Signature Valid
Ký bởi (Signed By): {{ $companyName }} Ký ngày (Signing Date): |