{{$agent->agentName}}

{{$agent->phoneNumber}}
{{$agent->agentEmail}}
ISSUED TO:
@if(!is_null($tenant))

{{$tenant->tenantName}}

{{$tenant->phoneNumber}}
@else

{{''.$receipt->houseName}}

{{''.$receipt->unitName}}
@endif

RECEIPT {{'#RCT'.$receipt->receiptId}}

Date:{{ date("d-m-Y", strtotime($receipt->paymentDate))}}
Payment for: @php($count=1) @php($sumTotal=0) @foreach($payments as $payment) @php($count++) @php($sumTotal+=$payment->paidAmount) @endforeach @foreach($partialPayments as $payment) @php($count++) @php($sumTotal+=$payment->amountPaid) @endforeach
# Item Prev.Reading Curr. Reading Amount
{{$count}} {{$payment->typeName}} {{$payment->previousReading}} {{$payment->currentReading}} {{number_format($payment->paidAmount,2)}}
{{$count}} {{$payment->typeName}} {{$payment->previousReading}} {{$payment->currentReading}} {{number_format($payment->amountPaid,2).' '}}[partialpay]
SUBTOTAL {{number_format($sumTotal,2)}}
GRAND TOTAL {{number_format($sumTotal,2)}}