Prepared For
{{ $quotation->customer_name }}
{{ $quotation->customer_email }}
Line Items
| Item |
Type |
Unit Price |
Qty |
Amount |
@foreach($quotation->items as $item)
@php
$isUnpricedService = $item->item_type === 'service' && (float) $item->unit_price <= 0;
@endphp
| {{ $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) }}
|
@endforeach
| 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