@extends('layouts.admin') @push('styles') @endpush @section('content')
Refresh

Income/Expense Cash Report

@php $inDirectAmt = 0; $netDirectExpense = 0; $netSupPay = 0; $netSale = 0; $netAssetsPay = 0; $netIncome=0; $netLoan=0; @endphp

Shalimar Kitchen

Ramarbagh, Kutubpur, Fatullah, Narayanganj
Mobile No:01711-886946, 01711886947

Cash Report

From {{ $formdate }} To {{ $todate }}

@foreach ($saleData as $sale) @php $netSale += $sale->amount; @endphp @endforeach @foreach ($income as $inc) @php $netIncome += $inc->amount; @endphp @endforeach @foreach ($loanGivenIncome as $lonInc) @php $netIncome += $lonInc->payAmount; @endphp @endforeach @foreach ($loan as $inc) @php $netLoan += $inc->amount; @endphp @endforeach
Income Taka Taka
Opening Balance {{number_format($openingBalance,2)}}
{{$sale->outlet_name}} ({{$sale->payment_method}}) {{$sale->amount }}
Total Sale {{ number_format($netSale, 2) }}
Income Group name Sub Group Name Taka
{{$inc->group_name}} {{$inc->sub_group_name}} {{$inc->amount }}
{{$lonInc->account_name}} {{$lonInc->payAmount }}
Total Amount {{ number_format($netIncome, 2) }}
Loan Group Name Sub Group Name Taka
{{$inc->group_name}} {{$inc->sub_group_name}} {{$inc->amount }}
Total Amount {{ number_format($netLoan, 2) }}
@foreach ($supplierBillPayment as $supPayAmt) @if ($supPayAmt->product_type !== 4) @php $netSupPay += $supPayAmt->total_amt; @endphp @endif @endforeach @foreach ($direct_expense as $directExp) @php $netDirectExpense +=$directExp->amount; @endphp @endforeach @foreach ($inDirect_expense as $indirectPay) @php $inDirectAmt +=$indirectPay->amount; @endphp @endforeach @foreach ($supplierBillPayment as $asstPay ) @if($asstPay->product_type == 4) @php $netAssetsPay +=$asstPay->total_amt; @endphp @endif @endforeach @foreach ($assetsPay as $assets) @php $netAssetsPay +=$assets->total_amt; @endphp @endforeach @foreach ($current_assets as $currAst) @php $netAssetsPay +=$currAst->amount; @endphp @endforeach @foreach ($loanGivenExpense as $lonExp) @php $netAssetsPay +=$lonExp->amount; @endphp @endforeach @php $totalExpense = ($inDirectAmt + $netDirectExpense +$netSupPay +$netAssetsPay); $closingBalance = ($netSale + $openingBalance +$netIncome + $netLoan) -$totalExpense; @endphp
Expense Taka Taka
Supplier Payment
{{$supPayAmt->supplier_name}} {{number_format($supPayAmt->total_amt,2)}}
Total Bill Payment {{number_format ($netSupPay,2)}}
Direct Expense
{{$directExp->group_name}} {{$directExp->sub_group_name}} {{$directExp->amount}}
Total Direct Expense {{number_format($netDirectExpense,2)}}
In Direct Expense
{{$indirectPay->group_name}} {{$indirectPay->sub_group_name}} {{$indirectPay->amount}}
Total In Direct Expense {{number_format($inDirectAmt,2)}}
Assets Expense
{{$asstPay->supplier_name}} {{number_format($asstPay->total_amt,2)}}
{{$assets->supplier_name}} {{$assets->total_amt}}
{{$currAst->group_name}} {{$currAst->sub_group_name}} {{$currAst->amount}}
{{$lonExp->account_name}} {{$lonExp->amount}}
Total Assets Expense {{number_format($netAssetsPay,2)}}
Total Expense {{ number_format($inDirectAmt + $netDirectExpense +$netSupPay +$netAssetsPay,2)}}
Closing Balance {{number_format($closingBalance,2)}}
Total {{ number_format($netSale +$netIncome + $netLoan+$openingBalance, 2) }} Total {{ number_format($totalExpense + $closingBalance,2)}}
@endsection @push('scripts') @endpush