PDFExcel@can('boms.manage')
@csrf
@if($bill->status==='draft')Edit@endif@endcan
@if(session('success'))
{{ session('success') }}
@endif @error('workflow')
{{ $message }}
@enderror

Customer

{{ $bill->customer->name }}

{{ $bill->customer_reference ?: $bill->customer->customer_number }}

Project location

{{ $bill->project_location ?: 'Not specified' }}

Issued {{ $bill->issued_at->format('d M Y') }}

@if($bill->valid_until)

Valid until {{ $bill->valid_until->format('d M Y') }}

@endif
@foreach($bill->sections as $section)@foreach($section->items as $item)@endforeach@endforeach
ItemDescriptionQtyUnitRateVATAmount
{{ $loop->iteration }}. {{ $section->title }}
{{ $item->item_code ?: $loop->iteration }}{{ $item->description }}{{ number_format((float)$item->quantity,4) }}{{ str_replace('_',' ',$item->unit) }}{{ number_format((float)$item->unit_rate,2) }}{{ number_format((float)$item->tax_rate,0) }}%{{ number_format((float)$item->amount,2) }}
SubtotalKES {{ number_format((float)$bill->subtotal,2) }}
VATKES {{ number_format((float)$bill->vat_amount,2) }}
TotalKES {{ number_format((float)$bill->total_amount,2) }}
@if($bill->terms || $bill->notes)

Commercial terms

{{ $bill->terms ?: 'No terms provided.' }}

Internal notes

{{ $bill->notes ?: 'No internal notes.' }}

@endif