@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á {{ $quote->quote_number }}
logo

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

{{ $companyName }}

@if ($companyTaxCode)
Mã số thuế (Tax code): {{ $companyTaxCode }}
@endif @if ($companyAddress)
Địa chỉ (Address): {{ $companyAddress }}
@endif @if ($companyPhone)
Điện thoại (Tel): {{ $companyPhone }}
@endif @if ($companyEmail)
Email: {{ $companyEmail }}
@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
QR Code

Thông tin khách hàng
@if ($quote->customer_company) @endif
Khách hàng:{{ $quote->customer_name }}
Công ty:{{ $quote->customer_company }}
@if ($quote->customer_phone) @endif @if ($quote->customer_email) @endif
Điện thoại:{{ $quote->customer_phone }}
Email:{{ $quote->customer_email }}
Thông tin dự án website
@if ($licenseFeeUsd > 0) @endif @if ($quote->description) @endif @if ($quote->requirements) @endif @if (count($referenceWebsites) > 0) @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: @foreach ($referenceWebsites as $ref) {{ $ref }}
@endforeach
Chi tiết báo giá
Watermark @foreach ($items as $i => $item) @endforeach @if ($quote->discount > 0) @endif @if ($quote->vat_percent > 0) @endif
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 }}
@if ($quote->note)
Ghi chú: {{ $quote->note }}
@endif
Đại diện {{ $companyName }}
@if ($quote->creator)
{{ $quote->creator->name }}
@endif