Date: {{ date("d-m-Y", strtotime($receipt->paymentDate))}}
House:{{$receipt->houseName}}
House Unit:{{$receipt->unitName}}
@if($tenant!=null)
Tenant Name: {{$tenant->tenantName}}
Phone Number:{{$tenant->phoneNumber}}
@endif
Payments for:
| No. |
Charge |
Prev. reading |
Curr. reading |
Amount |
@php($count=1)
@php($sumTotal=0)
@foreach($payments as $payment)
| {{$count}} |
{{$payment->typeName}} |
{{$payment->previousReading}} |
{{$payment->currentReading}} |
{{$payment->paidAmount}} |
@php($count++)
@php($sumTotal+=$payment->paidAmount)
@endforeach
@foreach($partialPayments as $payment)
| {{$count}} |
{{$payment->typeName}} |
{{$payment->previousReading}} |
{{$payment->currentReading}} |
{{$payment->amountPaid.' '}}[partialpay] |
@php($count++)
@php($sumTotal+=$payment->amountPaid)
@endforeach
| Total: |
{{$sumTotal}} |