@php $initialSections = old('sections', $bill->exists ? $bill->sections->map(fn($section)=>[ 'title'=>$section->title, 'items'=>$section->items->map(fn($item)=>[ 'product_id'=>$item->product_id,'item_code'=>$item->item_code,'description'=>$item->description, 'unit'=>$item->unit,'quantity'=>(float)$item->quantity,'unit_rate'=>(float)$item->unit_rate,'tax_rate'=>(float)$item->tax_rate, ])->all(), ])->all() : [['title'=>'General works','items'=>[['product_id'=>'','item_code'=>'','description'=>'','unit'=>'item','quantity'=>1,'unit_rate'=>0,'tax_rate'=>16]]]]); @endphp
@csrf @if($bill->exists)@method('PATCH')@endif

Work sections and priced items

Use sections for floors, rooms, phases, or work categories.

SubtotalKES 0.00
VATKES 0.00
TotalKES 0.00
@if($errors->any())
Please correct the BOM information. {{ $errors->first() }}
@endif
Cancel