@php $brandColor = $brandColor ?? '#1a56db'; $frontendLabels = [ 'nextjs' => 'Next.js', 'react' => 'React', 'vue' => 'Vue', 'nuxt' => 'Nuxt', 'astro' => 'Astro', 'angular' => 'Angular', ]; $frontendLabel = $quote->frontend_framework ? ($frontendLabels[$quote->frontend_framework] ?? $quote->frontend_framework) : null; $items = is_array($quote->items) ? $quote->items : []; $referenceWebsites = is_array($quote->reference_websites) ? $quote->reference_websites : []; $vatAmount = round(($quote->subtotal - $quote->discount) * $quote->vat_percent / 100, 2); $fmt = fn ($n) => number_format((float) $n, 0, ',', '.'); @endphp
|
{{ $companyName }}
@if ($companyAddress)Địa chỉ: {{ $companyAddress }} @endif
@if ($companyPhone)Điện thoại: {{ $companyPhone }} @endif
@if ($companyEmail)Email: {{ $companyEmail }} @endif
@if ($companyTaxCode)MST: {{ $companyTaxCode }} @endif
|
Số báo giá: {{ $quote->quote_number }}
Ngày lập: {{ $quote->created_at?->format('d/m/Y') }}
@if ($quote->valid_until)
Hiệu lực đến: {{ $quote->valid_until->format('d/m/Y') }}
@endif
|
|
|
| Website: | {{ $quote->website_name }} |
| Thể loại: | {{ $quote->website_category }} |
| Nền tảng: | {{ $platformLabel }} @if ($frontendLabel) — Frontend: {{ $frontendLabel }} @endif @if ($quote->custom_admin) Custom Admin @endif |
| Bản quyền: | Elementor Pro — {{ $licenseFeeUsd }}$/năm |
| Mô tả: | {{ $quote->description }} |
| Yêu cầu: | {{ $quote->requirements }} |
| Website mẫu: |
|
| STT | Hạng mục | SL | Đơn giá ({{ $quote->currency }}) | Thành tiền ({{ $quote->currency }}) |
|---|---|---|---|---|
| {{ $i + 1 }} |
{{ $item['name'] ?? '' }}
@if (!empty($item['description']))
{{ $item['description'] }}
@endif
|
{{ $item['quantity'] ?? 1 }} | {{ $fmt($item['unit_price'] ?? 0) }} | {{ $fmt(($item['quantity'] ?? 1) * ($item['unit_price'] ?? 0)) }} |
| Tạm tính: | {{ $fmt($quote->subtotal) }} |
| Giảm giá: | -{{ $fmt($quote->discount) }} |
| VAT ({{ rtrim(rtrim(number_format($quote->vat_percent, 2, '.', ''), '0'), '.') }}%): | {{ $fmt($vatAmount) }} |
| Tổng cộng: | {{ $fmt($quote->total) }} {{ $quote->currency }} |
|
Đại diện khách hàng
(Ký, ghi rõ họ tên)
|
Đại diện {{ $companyName }}
(Ký, ghi rõ họ tên)
@if ($quote->creator)
{{ $quote->creator->name }}
@endif
|