| Receipt No |
Customer |
Booking Detail |
Date |
Ch # |
Drawn On |
Amount |
@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))
| {{$rows->receipt_no}} |
{{$rows->user->name}} |
{{$rows->showGenericTypeDetail($rows)['description']}} |
{{EF::dateFormat($rows->created_at)}} |
@if($rows->mode == 'Cash')
Cash |
@else
{{$rows->instrument}} |
@endif
{{$rows->drawn_on}} |
{{EF::numberFormat($rows->amount)}} {{EF::numberToWords($rows->amount)}} |
@if($rows->status === 'Reversal')
@php($reversal_amount += $rows->amount)
@else
@php($approval_amount += $rows->amount)
@endif
@endif
@endforeach
| Total: [Debit:{{EF::numberFormat($approval_amount)}} - Credit:{{EF::numberFormat($reversal_amount)}}] = {{EF::numberFormat(($approval_amount - $reversal_amount))}} |