CASH BOOK REPORT

{{--*/ $dr_total = 0 /*--}} {{--*/ $cr_total = 0 /*--}} {{--*/ $total = $account_open_balance /*--}} @foreach($account_transactions as $index=>$cash_book_transaction) {{--*/ $currency = $cash_book_transaction['currency_id'] /*--}} {{--*/ $amount = \App\Logistics\Facades\Logistics::currencyConvertorV2($cash_book_transaction->amount, $cash_book_transaction->exchange_rate, $cash_book_transaction->currency_id,$currency_id) /*--}} {{-- --}} @endforeach
{{$account->name}}
From {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} To {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
Date Narrations Ref Party Tran. Amount Deposit Withdraw
Open Balance As of {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} : {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}
{{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}}{{$cash_book_transaction['supplement_account']}}{{$cash_book_transaction['description']}} {{$cash_book_transaction['reference_number']}} {{$cash_book_transaction['payee']}} {{number_format($cash_book_transaction['amount'],2)}} @if($cash_book_transaction['type']=='DEBITED') {{ number_format($amount,2)}} {{--*/ $total += $amount /*--}} {{--*/ $dr_total += $amount /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{ number_format($amount,2) }} {{--*/ $total -= $amount /*--}} {{--*/ $cr_total += $amount /*--}} @endif
  {{number_format($dr_total,2) }} {{ number_format($cr_total,2) }}
Close Balance As of {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}} : {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}