FOSSA
FOSSA General Services and Supplies
@if($contact) {{ $contact->address }}
{{ $contact->phone }} · {{ $contact->email }} @endif
QUOTATION
Reference: {{ $quotation->reference }}
Date: {{ $quotation->created_at->format('d M Y') }}
Status: {{ ucfirst($quotation->status) }}
Prepared For
{{ $quotation->customer_name }}
{{ $quotation->customer_email }}
Line Items
@foreach($quotation->items as $item) @php $isUnpricedService = $item->item_type === 'service' && (float) $item->unit_price <= 0; @endphp @endforeach
Item Type Unit Price Qty Amount
{{ $item->item_name }} {{ ucfirst($item->item_type) }} {{ $isUnpricedService ? '—' : format_tzs($item->unit_price) }} {{ $item->item_type === 'service' ? '—' : $item->quantity }} {{ $isUnpricedService ? '—' : format_tzs($item->line_total) }}
Subtotal @php $hasUnpriced = $quotation->items->contains(function ($item) { return $item->item_type === 'service' && (float) $item->unit_price <= 0; }); @endphp {{ $hasUnpriced && (float) $quotation->subtotal <= 0 ? '—' : format_tzs($quotation->subtotal) }}
Total @if($hasUnpriced && (float) $quotation->total <= 0) — @elseif($hasUnpriced) {{ format_tzs($quotation->total) }} + TBD @else {{ format_tzs($quotation->total) }} @endif
@if($quotation->notes)
Customer Notes
{{ $quotation->notes }}
@endif