{{----}} @if($cash_book_transactions_open_balance > 0) @else @endif {{--*/ $dr_total = 0 /*--}} {{--*/ $cr_total = 0 /*--}} {{--*/ $total = $cash_book_transactions_open_balance /*--}} @foreach($cash_book_transactions as $index=>$cash_book_transaction) @endforeach
CASH BOOK REPORT
FROM {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
  Date Particulars Payee REF AMOUNT- DR AMOUNT- CR BalanceAmount Due
  - bal b/f {{number_format($cash_book_transactions_open_balance,2)}} {{number_format($cash_book_transactions_open_balance,2)}}
  {{\Carbon\Carbon::parse($cash_book_transaction['date'])->toFormattedDateString()}} {{$cash_book_transaction['description']}} {{$cash_book_transaction['payee']}} {{$cash_book_transaction['document_number']}} @if($cash_book_transaction['type']=='DEBITED') {{number_format($cash_book_transaction['amount'],2)}} {{--*/ $total += $cash_book_transaction['amount'] /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{number_format($cash_book_transaction['amount'],2)}} {{--*/ $total -= $cash_book_transaction['amount'] /*--}} @endif {{number_format($total,2)}}