@extends('layouts.main_without_top_button') @section('title') Maintenance @stop @section('navigation') @stop @section('contentinner')

SERVICE SUMMARY

Service and Vehicle Information

Service No .: {{$vehicle_service->id}}
Truck No.: {{$vehicle_service->vehicle->registration_number}}
Driver Name.: {{$vehicle_service->driver}}
Created By: {{$vehicle_service->createdBy}}
Trailer No.: {{$vehicle_service->trailer}}
Chessis Number: {{$vehicle_service->vehiclable->chasis_number}}

Service Done

@foreach($vehicle_service->serviceParameter as $index=> $service) @endforeach
No. DESCRIPTION
{{++$index}} {{$service->service}}



Jobcard

{{--*/ $labour_cost = 0 /*--}} @if(sizeof($vehicle_service->jobCard->jobCardLabours) >0) @foreach($vehicle_service->jobCard->jobCardLabours as $index=> $job_card_labour) @endforeach @endif
LABOUR NAME:
{{$job_card_labour->employee->fullName}} @if($job_card_labour->employee->phone_no) ({{$job_card_labour->employee->phone_no}}) @endif
{{--*/ $i=1 /*--}} @foreach($job_card_labour->employeeServices as $employee_service) {{--*/ $i++ /*--}} @endforeach
S/N Service Assigned Remark
{{$i}} {{$employee_service->service}}



Spare parts

{{--*/ $material_cost = 0 /*--}} @foreach($vehicle_service->GoodsIssuedNotes as $index=> $gin) {{--*/ $material_cost += $gin->quantity*$gin->price_per_item /*--}} @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}} {{$gin->price_per_item}} {{number_format($gin->quantity*$gin->price_per_item,2)}}
Total {{number_format($material_cost,2)}}



Payment vouchers

{{--*/ $payment_voucher_cost = 0 /*--}} @foreach($vehicle_service->paymentVouchers as $payment_voucher) {{--*/ $payment_voucher_cost += $payment_voucher->amount /*--}} @endforeach
PVNO Date Paid By From Received By Remarks Amount
{{$payment_voucher->id}} {{\Carbon\Carbon::parse($payment_voucher->date_created)->toFormattedDateString()}} {{$payment_voucher->paid_by}} {{$payment_voucher->dr_account}} {{$payment_voucher->employee_name}} {{$payment_voucher->remarks}} {{number_format($payment_voucher->amount,2)}}
@foreach($payment_voucher->paymentVoucherItems as $index=>$payment_voucher_item) @endforeach
S/N Expense Currency Amount
{{++$index}} {{$payment_voucher_item->dr}} {{$payment_voucher_item->currency}} {{number_format($payment_voucher_item->amount,2)}}
  {{number_format($payment_voucher_cost,2)}}



Overall Summary

{{--*/ $oval_cost = 0 /*--}} {{--*/ $oval_cost += $labour_cost /*--}} {{--*/ $oval_cost += $material_cost /*--}} {{--*/ $oval_cost += $payment_voucher_cost /*--}}
No. Cost Type Amount
1 LABOUR {{number_format($labour_cost,2)}}
2 SPARE PARTS {{number_format($material_cost,2)}}
3 PAYMENT VOUCHER {{number_format($payment_voucher_cost,2)}}
4 OVERHEAD {{number_format(0,2)}}
{{number_format($oval_cost,2)}}
@stop