{{$company->company_name}}
Address: {{$company->company_address}}, {{$company->city}}, Tanzania
{{$company->compny_phone}}

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
Cash Book Report - {{$account->name}}
From {{\Carbon\Carbon::parse($date[0])->toFormattedDateString()}} To {{\Carbon\Carbon::parse($date[1])->toFormattedDateString()}}
Date Suppl. A/c Narrations Payee Ref Tran. Amount Dr Cr Balance
{{ ($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['payee']}} {!! $cash_book_transaction->voucher_link !!} {{$cash_book_transaction['currency_code']}} {{number_format($cash_book_transaction['amount'],2)}} @if($cash_book_transaction['type']=='DEBITED') {{ number_format($amount,2)}} {{--*/ $total += $amount /*--}} @endif @if($cash_book_transaction['type']=='CREDITED') {{ number_format($amount,2) }} {{--*/ $total -= $amount /*--}} @endif {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}
  {{ ($total > 0) ? number_format($total,2) : "( ".number_format(-1*$total,2)." )" }}