@php $companySettings = \App\Models\CompanySetting::getSettings(); $hasCompanyLogo = $companySettings && $companySettings->company_logo && \Illuminate\Support\Facades\Storage::disk('public')->exists($companySettings->company_logo); @endphp @if($hasCompanyLogo)
@endif
{{ $companySettings->company_name ?? config('app.name') }}
@php $cityLine = trim(implode(', ', array_filter([ $companySettings->company_city ?? null, $companySettings->company_state ?? null, $companySettings->company_zip ?? null, ]))); $hasBrandDetails = $companySettings->company_address || $cityLine !== '' || !empty($companySettings->company_country) || $companySettings->company_phone || $companySettings->company_email || $companySettings->company_tax_id; @endphp @if($hasBrandDetails)
@if($companySettings->company_address)
{{ $companySettings->company_address }}
@endif @if($cityLine !== '')
{{ $cityLine }}
@endif @if(!empty($companySettings->company_country))
{{ $companySettings->company_country }}
@endif @if($companySettings->company_phone)
{{ $companySettings->company_phone }}
@endif @if($companySettings->company_email)
{{ $companySettings->company_email }}
@endif @if($companySettings->company_tax_id)
Tax ID: {{ $companySettings->company_tax_id }}
@endif
@endif
Quotation
{{ $quotation->quotation_number ?? 'QUO-001' }}
{{ ($quotation->issue_date ?? now())->format('M d, Y') }} - {{ ($quotation->expiry_date ?? now()->addDays(30))->format('M d, Y') }}
Quoted To
@if($quotation->customer ?? null)
{{ $quotation->customer->name }}
@if($quotation->customer->email){{ $quotation->customer->email }}
@endif @if($quotation->customer->phone){{ $quotation->customer->phone }}
@endif @if($quotation->customer->address){{ $quotation->customer->address }}@endif
@endif
@forelse($quotation->items ?? [] as $item) @empty @endforelse
Service / Item Quantity Unit Price Tax Total
{{ $item->description }} @if($item->notes)
{{ $item->notes }} @endif
{{ number_format($item->quantity, 2) }} {{ $quotation->currency ?? 'USD' }} {{ number_format($item->unit_price, 2) }} {{ $item->tax_rate ?? 0 }}% {{ $quotation->currency ?? 'USD' }} {{ number_format(($item->quantity * $item->unit_price) * (1 + ($item->tax_rate ?? 0) / 100), 2) }}
No items
@if(($quotation->tax_amount ?? 0) > 0) @endif @if(($quotation->discount_amount ?? 0) > 0) @endif
Subtotal {{ $quotation->currency ?? 'USD' }} {{ number_format($quotation->subtotal ?? 0, 2) }}
Tax {{ $quotation->currency ?? 'USD' }} {{ number_format($quotation->tax_amount ?? 0, 2) }}
Discount -{{ $quotation->currency ?? 'USD' }} {{ number_format($quotation->discount_amount ?? 0, 2) }}
Total Estimate {{ $quotation->currency ?? 'USD' }} {{ number_format($quotation->total ?? 0, 2) }}
Acceptance & Authorization
Client Signature
Date
@if($quotation->notes)
Notes
{{ $quotation->notes }}
@endif
Terms & Conditions
{{ $quotation->terms ?? 'This quotation is valid for 30 days from the date of issue. All prices are subject to change without notice. Payment terms: Net 30 days from invoice date.' }}