@extends('layouts.admin') @section('content')
{{ trans('cruds.report.saleReport') }} {{ trans('global.list') }}
Reset
@php $cashier_shop_sale = $cashiersale->where('financialcategory.code','EXP23')->sum('amount'); $cashier_fuel_sale = $cashiersale->where('financialcategory.code','EXP22')->sum('amount'); $fuel_sale = $drivesheet->sum('stock_value'); $fuel_total = $fuel_sale + $fuelsale->sum('amount'); $sale_total = $shopsale->sum('amount'); @endphp
{{ trans('cruds.report.computer_sale') }} {{ trans('cruds.report.total_sale') }} {{ trans('cruds.report.variance') }}
{{ trans('cruds.report.fuel_sale') }} {{ number_format($cashier_fuel_sale,2)}} {{ number_format($fuel_total,2) }} {{ number_format($fuel_total - $cashier_fuel_sale,2)}}
{{ trans('cruds.report.shop_sale') }} {{ number_format($cashier_shop_sale,2)}} {{ number_format($sale_total,2)}} {{ number_format($sale_total - $cashier_shop_sale,2)}}
{{ trans('cruds.report.total') }} {{ number_format($cashier_shop_sale + $cashier_fuel_sale,2)}} {{ number_format($fuel_total + $sale_total,2)}}
{{ trans('cruds.report.totalReport') }}
@php $shell_total = !empty($shell) ? $shell->total_amount : '0'; $driveway_acc_total = !empty($driveway_account) ? $driveway_account->total_amount : '0'; $total_sale = $sale_total + $fuel_total; $cash_sale = $total_sale - $speed->sum('total_amount') - $shell_total - $driveway_acc_total; $amount_deposit = $deposit; $total_variance = $amount_deposit - $cash_sale; @endphp @foreach($fuelsale as $item) @endforeach @foreach($shopsale as $item) @endforeach @foreach($speed as $item) @endforeach
{{ trans('cruds.report.maintitle') }} {{ trans('cruds.report.amount') }}
{{ trans('cruds.report.fuelSale') }} {{ $fuel_sale}}
{{ ucfirst($item->financialCategory->title)}} {{ $item->amount}}
{{ trans('cruds.report.fuelTotal') }} {{ $fuel_total}}
{{ ucfirst($item->financialCategory->title)}} {{ $item->amount}}
{{ trans('cruds.report.total_sale') }} {{ $total_sale}}
{{ ucfirst($item->type)}} {{ $item->total_amount}}
{{ trans('cruds.report.sheelCard') }} {{ $shell_total}}
{{ trans('cruds.report.accountSale') }} {{ $driveway_acc_total}}
{{ trans('cruds.report.cashSale') }} {{ $cash_sale}}
{{ trans('cruds.report.amountDeposit') }} {{ $amount_deposit}}
{{ trans('cruds.report.variance') }} {{ $total_variance}}
@endsection @section('scripts') @parent @endsection