@extends('vehicles.profile.includes.main') @section('profile')

Fuel List

{{--*/ $total_fuel_cons = 0 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($fuels as $fuel) {{--*/ $total_fuel_cons += $fuel->quantity /*--}} {{--*/ $total_amount += $fuel->quantity*$fuel->rate /*--}} @endforeach
Date Order For Reference Driver Name Quantity Price Amount
{{ $fuel->date_ordered }} @if(!empty($fuel->routeName)) {{ $fuel->routeName}} Route @else Addition Fuel @endif Order No. {{ $fuel->id }} {{ $fuel->driverName}} {{ number_format($fuel->quantity) }} {{ number_format($fuel->rate) }} {{ number_format($fuel->quantity*$fuel->rate) }}
Summary {{number_format($total_fuel_cons)}} liters Tsh {{ number_format($total_amount) }}
{{--model for adding new vehicle/truck--}} @stop