SERVICE REPORT

VEHICLE & SERVICE DETAILS
SERVICE NO. : {{$vehicle_service->id}} CREATED BY. : {{$vehicle_service->createdBy}}
VEHICLE : {{$vehicle_service->vehiclable->registration_number}} CHASSIS NO. : {{$vehicle_service->vehiclable->chasis_number}}
MAKE : {{$vehicle_service->vehiclable->make}} MODEL : {{$vehicle_service->vehiclable->model}}
DRIVER : {{$vehicle_service->vehiclable->driverName}} PHONE NO. : {{$vehicle_service->vehiclable->getDriverNumber()}}
SERVICES DONE
@foreach($vehicle_service->serviceParameter as $index=> $service) @endforeach
No. DESCRIPTION
{{++$index}} {{$service->service}}
Employees Involved
{{--*/ $labour_cost =0 /*--}} @foreach($vehicle_service->vehicleServiceEmployees as $index=> $employee) @endforeach
No. Name Time Spent Overtime Cost Amount
{{++$index}} {{$employee->employee->fullName}}
Total {{number_format($labour_cost,2)}}
Materials Used
{{--*/ $material_cost = 0 /*--}} @foreach($vehicle_service->GoodsIssuedNotes as $index=> $gin) @endforeach
No. GIN NO. Name Quantity Average Price Amount
{{++$index}} {{str_pad($gin->goods_issued_note_id,4,"0",STR_PAD_LEFT)}} {{$gin->item->name}} {{$gin->quantity}}
Total {{number_format($material_cost,2)}}
Other Costs
{{----}} {{----}} {{--*/ $other_cost = 0 /*--}} @foreach($vehicle_service->vouchers as $index=> $voucher) {{----}} {{----}} {{--*/ $other_cost +=$voucher->amount /*--}} @endforeach
No. Voucher NO. descriptionQuantityPriceAmount
{{++$index}} {{$voucher->id}} {{$voucher->description}}{{$voucher->price_per_item}}{{number_format($voucher->price)}}{{number_format($voucher->amount)}}
TOTAL {{number_format($other_cost,2)}}
Service Summary
{{--*/ $oval_cost = 0 /*--}} {{--*/ $oval_cost += $labour_cost /*--}} {{--*/ $oval_cost += $material_cost /*--}} {{--*/ $oval_cost += $other_cost /*--}}
No. Cost Type Amount
1 Labour Cost {{number_format($labour_cost,2)}}
2 Material Cost {{number_format($material_cost,2)}}
3 Overhead Cost {{number_format(0,2)}}
4 Other Cost {{number_format($other_cost,2)}}
{{number_format($oval_cost,2)}}