@php $brandColor = $brandColor ?? '#1a56db'; $companyLogo = $companyLogo ?? setting('setting.logo') ?? ''; $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
|
BÁO GIÁ WEBSITE |
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
|
| 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 |
|
|
| 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: |
@foreach ($referenceWebsites as $ref)
{{ $ref }} @endforeach |
| STT (No) |
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 {{ $companyName }}
@if ($quote->creator)
{{ $quote->creator->name }}
@endif
|