{{--*/ $col_span =5 /*--}} {{--*/ $m =1 /*--}} @foreach($months as $month) {{--*/ $col_span +=$m /*--}} {{--*/ $m++ /*--}} @endforeach @foreach($months as $month) @endforeach {{--*/ $total = 0 /*--}} @foreach($vehicles as $index=>$vehicle) @foreach($months as $month) {{--*/ $total +=$vehicle->getMonthlyMaintenance($month) /*--}} @endforeach @endforeach @foreach($months as $month) @endforeach
TRUCKS MAINTENANCE & SPARE PARTS COST REPORT
FROM {{\Carbon\Carbon::parse($date[0])->format('F y')}} TO {{\Carbon\Carbon::parse($date[1])->format('F y')}}
SNO. Hose No. Trailer No. Driver Name Contact No{{\Carbon\Carbon::parse($month)->format('F y')}}
{{++$index}} {{$vehicle->registration_number}} {{$vehicle->_with()}} {{$vehicle->driver_name}} {{$vehicle->getDriverNumber()}}{{number_format($vehicle->getMonthlyMaintenance($month),2)}}
OVERALL COST{{number_format(\App\Logistics\Facades\Vehicles::getMonthlyOverallMaintenance($month),2)}}