@extends('layouts.app') @section('page_title','Profit Report') @section('content')
@foreach($items as $i)@endforeach
DateFuelQtySaleCostProfit
{{ $i->sale->sale_date }}{{ $i->fuelType->name_en }}{{ $i->quantity }}{{ number_format($i->total,2) }}{{ number_format($i->cost_total,2) }}{{ number_format($i->profit,2) }}
Total{{ number_format($items->sum('total'),2) }}{{ number_format($items->sum('cost_total'),2) }}{{ number_format($items->sum('profit'),2) }}
@endsection