@include('main.print_head_stmt')

{{ $voucherhead }}

Date From: {{ $fromdate }}    To: {{ ($todate=='')?date('d-m-Y'):$todate }}

{{-- SUMMARY --}} @if($type == 'Summary') @foreach($results as $row) @if($row->categories != 'PDCI') @endif @endforeach @foreach($results as $row) @if($row->categories == 'PDCI') @endif @endforeach
Account Group Balance
{{ $row->categories }} {{ number_format($row->balance,2) }}
Cash & Other Bills Receivable : {{ number_format($cr_total,2) }}
{{ $row->categories }} {{ number_format($row->balance,2) }}
Bills Payable : {{ number_format($dr_total,2) }}
Net Cash In Hand : {{ number_format($bl_total,2) }}
{{-- DETAILS --}} @elseif($type == 'Details') @foreach($results as $category => $rows)

{{ $category }}

@foreach($rows as $row) @endforeach
Account Group Balance
{{ $row['account_name'] }} {{ number_format($row['balance'],2) }}
Total : {{ number_format($total,2) }}
@endforeach
Net Cash In Hand : {{ number_format($net_total,2) }}
{{-- CASH FLOW --}} @elseif(strtolower($type) == 'cashflow') @foreach ($results as $row) @endforeach
Date Opening Cash In Cash Out PDC Received PDC Issued Closing
{{ $row['date'] }} {{ number_format($row['opening'],2) }} {{ number_format($row['cash_in'],2) }} {{ number_format($row['cash_out'],2) }} {{ number_format($row['pdc_r'],2) }} {{ number_format($row['pdc_i'],2) }} {{ number_format($row['closing'],2) }}
@endif
@include('main.print_foot_stmt')
@csrf