@include('docs._printhead', ['title'=>'MAINTENANCE WORK ORDER','no'=>$w->wo_no,'date'=>'Reported: '.fdate($w->reported_date).' ยท Priority: '.ucfirst($w->priority)])
Equipment: {{ $w->equipment->display_name }}
Reg: {{ $w->equipment->registration_no ?? 'โ€”' }}
Type: {{ $w->maintenance_type }}
Reported by: {{ $w->reported_by }}
Technician: {{ $w->assigned_technician ?? 'โ€”' }}
Status: {{ ucfirst($w->status) }}

Problem: {{ $w->problem_description }}

Work done: {{ $w->work_done ?? 'โ€”' }}

@foreach($w->parts as $i=>$p)@endforeach
#PartQtyRateAmount
{{ $i+1 }}{{ $p->item->display_name ?? '' }}{{ qty($p->qty) }}{{ money($p->rate) }}{{ money($p->amount) }}
Parts{{ money($w->parts_cost) }}
Labour{{ money($w->labour_cost) }}
TOTAL{{ cmoney($w->total_cost) }}
@include('docs._printfoot', [])