{{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}} |
{{$cash_book_transaction['document']}} |
|
@if($cash_book_transaction['type']=='DEBITED')
@if($account->increase =='DEBITED')
{{number_format($cash_book_transaction['amount'],2)}}
{{--*/ $dr_total += $cash_book_transaction['amount'] /*--}}
{{--*/ $balance -= $cash_book_transaction['amount'] /*--}}
@else
{{number_format($cash_book_transaction['amount'],2)}}
{{--*/ $dr_total += $cash_book_transaction['amount'] /*--}}
{{--*/ $balance += $cash_book_transaction['amount'] /*--}}
@endif
|
|
@endif
@if($cash_book_transaction['type']=='CREDITED')
|
@if($account->increase =='DEBITED')
{{number_format($cash_book_transaction['amount'],2)}}
{{--*/ $cr_total += $cash_book_transaction['amount'] /*--}}
{{--*/ $balance += -$cash_book_transaction['amount'] /*--}}
@else
{{number_format($cash_book_transaction['amount'],2)}}
{{--*/ $cr_total += $cash_book_transaction['amount'] /*--}}
{{--*/ $balance += $cash_book_transaction['amount'] /*--}}
@endif
|
@endif
{{number_format($balance,2)}}
{{--*/ $balance /*--}}
|
@endforeach