{{-- @php $blance=$bankAccount->initial_balance; $totalDeposite =0; $totalWithdraw =0; @endphp @foreach ($bankTransactions as $bankTransaction) @php $totalWithdraw +=$bankTransaction->withdraw; $totalDeposite +=$bankTransaction->deposit; $blance= ($blance+$bankTransaction->deposit)-$bankTransaction->withdraw; @endphp @endforeach --}}
Date Description Cash In Cash Out Blance
Previous Balance {{$blance}}
{{ $loop->iteration }} {{ date('d-M-Y',strtotime($bankTransaction->transaction_date)) }} {{ $bankTransaction->transaction_type }} {{ number_format($bankTransaction->deposit,2) }} {{ number_format($bankTransaction->withdraw,2) }}{{number_format( $blance,2)}}
Total {{number_format($totalDeposite,2)}} {{number_format($totalWithdraw,2)}} {{number_format($blance,2)}}