@extends('layouts.admin') @section('content')
{{ trans('cruds.pump.fields.pump') }} | {{ trans('cruds.drivewaySheet.fields.opening') }} | {{ trans('cruds.drivewaySheet.fields.closing') }} | @foreach($fuels as $key => $fuel){{ $fuel }} | @endforeach{{ trans('global.total') }} | {{ trans('cruds.report.fuelSale') }} |
---|---|---|---|---|---|
{{$data->pump->pump}} | {{number_format($data->opening_balance,2)}} | {{number_format($data->closing_balance,2)}} | @foreach($fuels as $id => $fuel)@if($data->fuel_id == $id) {{number_format($data->stock,2)}} @endif | @endforeach{{number_format($data->stock_value,2)}} | |
{{ trans('cruds.report.computerSale') }} | @foreach($fuels as $id => $fuel) @php $sale[$id] = count($fuelstock) > 0 && !empty($fuelstock->where('fuel_type',$id)->first()) ? $fuelstock->where('fuel_type',$id)->first()->sale : 0; @endphp{{number_format($sale[$id],2)}} | @endforeach{{number_format(array_sum($sale),2)}} | {{number_format($fuelsale,2)}} | ||
{{ trans('cruds.report.mechanicalSale') }} {{ trans('cruds.report.inLtr') }} | @foreach($fuels as $id => $fuel) @php $sum[$id] = $drivesheet->where('fuel_id',$id)->sum('stock'); @endphp{{number_format($sum[$id],2)}} | @endforeach{{number_format(array_sum($sum),2)}} | |||
{{ trans('cruds.report.mechanicalValue') }} | @foreach($fuels as $id => $fuel) @php $selling_price = $fuelprices->where('fuel_id',$id)->first(); $price = $selling_price ? $selling_price->selling_price : '0'; $mechanical[$id] = $sum[$id] * (float) $price; @endphp{{number_format($mechanical[$id],2)}} | @endforeach{{number_format(array_sum($mechanical),2)}} | |||
{{ trans('cruds.report.difference') }} {{ trans('cruds.report.inLtr') }} | @foreach($fuels as $id => $fuel) @php $diff[$id] = $sum[$id] - $sale[$id]; @endphp{{number_format($diff[$id],2)}} | @endforeach{{number_format(array_sum($sum) - array_sum($sale),2)}} |
Fuel | {{ trans('cruds.fuelStock.fields.opening_stock') }} | {{ trans('cruds.fuelStock.fields.purchase') }} | {{ trans('cruds.fuelStock.fields.calculated_stock') }} | {{ trans('cruds.report.lessSale') }} | {{ trans('cruds.fuelStock.fields.closing_stock') }} | {{ trans('cruds.fuelStock.fields.closing_dips') }} | {{ trans('cruds.report.difference') }} |
---|---|---|---|---|---|---|---|
{{$data->fuel->fuel_name}} | {{number_format($data->opening_stock,2)}} | {{number_format($data->purchase,2)}} | {{number_format($data->stock,2)}} | {{number_format($l_sale,2)}} | {{number_format($clos_stock,2)}} | {{number_format($data->closing_dips,2)}} | {{number_format($data->closing_dips - $clos_stock,2)}} |
Total | {{number_format($opening_stock,2)}} | {{number_format($purchase,2)}} | {{number_format($cal_stock,2)}} | {{number_format($less_sale,2)}} | {{number_format($closing_stock,2)}} | {{number_format($closing_dips,2)}} | {{number_format($closing_dips - $closing_stock,2)}} |