@php $logo='data:image/png;base64,'.base64_encode(file_get_contents(public_path('images/morbrick-brand.png'))); @endphp @if($bill->status!=='approved'&&$bill->status!=='converted')
{{ strtoupper($bill->status) }}
@endif
@include('pdf.partials.company-letterhead')

BILL OF MATERIALS

{{ $bill->bom_number }}
{{ strtoupper($bill->status) }}
Customer{{ $bill->customer->name }}Issued{{ $bill->issued_at->format('d M Y') }}
Project{{ $bill->project_title }}Valid until{{ $bill->valid_until?->format('d M Y') ?: 'Not specified' }}
Location{{ $bill->project_location ?: 'Not specified' }}Reference{{ $bill->customer_reference ?: $bill->customer->customer_number }}
@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) }}{{ strtoupper(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)
TERMS

{{ $bill->terms }}

@endif