@include('header')

Invoice No:{{'#INV'.$invoice->invoiceId}}

Date: {{ date("d-m-Y", strtotime($invoice->invoiceDate)) }}
House:{{$invoice->houseName}}
House Unit:{{$invoice->unitName}}
@if($tenant!=null)
Tenant Name: {{$tenant->tenantName}}
Phone Number:{{$tenant->phoneNumber}}
@endif
Charges
@php($count=1) @php($sumTotal=0) @foreach($invoiceCharges as $invoiceCharge) @php($count++) @php($sumTotal+=$invoiceCharge->amountTopay) @endforeach
No. Charge Prev. reading Curr. reading Amount
{{$count}} {{$invoiceCharge->typeName}} {{$invoiceCharge->previousReading}} {{$invoiceCharge->currentReading}} {{$invoiceCharge->amountTopay}} @if($invoiceCharge->paidStatus==1) {{'(paid)'}} @endif
Total: {{$sumTotal}}
@if($invoice->paidStatus==0)