@include('PrintHeader.header')
{{-- @php $si=$TotalDebit=$TotalCredit=0; @endphp
{{__('lng.CustomerPaymentReport')}}
| {{__('lng.OpeningBalance')}} | @if ($OpeningBalance >= 0) @currency($OpeningBalance) DR @php $TotalDebit=$OpeningBalance; @endphp @else @currency(abs($OpeningBalance)) CR @php $TotalCredit=abs($OpeningBalance); @endphp @endif | ||||||
| {{__('lng.SiNo')}} | {{__('lng.Customer')}} | {{__('lng.Phone')}} | {{__('lng.Pending')}} | {{__('lng.PaidAmount')}} | {{__('lng.LastPaidDate')}} | {{__('lng.Narration')}} | |
|---|---|---|---|---|---|---|---|
| {{++$si}} | {{ $array['customer']}} | {{$array['phone']}} | {{$array['pending']}} | {{$array['amount']}} | {{$value}} | {{$array['narration']}} | |
| Total | @currency($TotalDebit) | @currency($TotalCredit) | |||||
| {{__('lng.ClosingBalance')}} | @if ($TotalDebit - $TotalCredit >= 0) @currency($TotalDebit - $TotalCredit) DR @else @currency(abs($TotalDebit - $TotalCredit)) CR @endif | ||||||