@php($message = 'Collection report has viewed.') @php(EF::createLogs($message,'document')) Collection Report

Collection Report
@php($reversal_amount = 0) @php($approval_amount = 0) @php($check_list = ["Installment","Commission","Transfer","Refund","Deduction","Document Charges","Baloon Charges"]) @foreach($payment_list as $rows) @if(in_array($rows->payment_type,$check_list)) @if($rows->mode == 'Cash') @else @endif @if($rows->status === 'Reversal') @php($reversal_amount += $rows->amount) @else @php($approval_amount += $rows->amount) @endif @endif @endforeach
Receipt No Customer Booking Detail Date Ch # Drawn On Amount
{{$rows->receipt_no}} {{$rows->user->name}} {{$rows->showGenericTypeDetail($rows)['description']}} {{EF::dateFormat($rows->created_at)}}Cash{{$rows->instrument}}{{$rows->drawn_on}} {{EF::numberFormat($rows->amount)}} {{EF::numberToWords($rows->amount)}}
Total: [Debit:{{EF::numberFormat($approval_amount)}} - Credit:{{EF::numberFormat($reversal_amount)}}] = {{EF::numberFormat(($approval_amount - $reversal_amount))}}