{{$agent->agentName}}

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

{{$tenant->tenantName}}

{{$tenant->phoneNumber}}
@else

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

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

INVOICE {{'#INV'.$invoice->invoiceId}}

Date of Invoice: {{ date("d-m-Y", strtotime($invoice->invoiceDate)) }}
@php($count=1) @php($sumTotal=0) @foreach($invoiceCharges as $invoiceCharge) @php($count++) @php($sumTotal+=$invoiceCharge->amountTopay) @endforeach
# Item Prev. Reading Curr. Reading Amount
{{$count}} {{$invoiceCharge->typeName}} {{$invoiceCharge->previousReading}} {{$invoiceCharge->currentReading}} {{ number_format($invoiceCharge->amountTopay,2) }} @if($invoiceCharge->paidStatus==1) {{'[paid]'}} @endif
SUBTOTAL {{ number_format($sumTotal,2) }}
Other charges 00.00
GRAND TOTAL {{ number_format($sumTotal,2) }}