@extends('layouts.app') @section('content')
Manage and track all utility invoices in one place
| Invoice @if(request('sort') == 'InvoiceNo') @else @endif | Property @if(request('sort') == 'PropName') @else @endif | Billing Period | Consumption Type | Amount @if(request('sort') == 'InvoiceAmount') @else @endif | Status | Actions |
|---|---|---|---|---|---|---|
| {{ $invoice->InvoiceNo }} |
{{ $invoice->property->PropName ?? 'N/A' }}
{{ $invoice->property->PropCode ?? '' }}
|
{{ $invoice->BillingPeriod }}
Due: {{ $invoice->DueDate->format('M d, Y') }}
|
@php $consTypeData = \DB::table('tblconstype')->where('tID', $invoice->ConsType)->first(); echo $consTypeData ? ($consTypeData->ConsTypeDescription ?? $consTypeData->ConsType) : 'N/A'; @endphp |
KSh {{ number_format($invoice->InvoiceAmount, 0) }}
@if($invoice->is_paid)
Paid on {{ $invoice->updated_at->format('M d, Y') }}
@endif
|
@if($invoice->is_paid) Paid @elseif($invoice->DueDate->isPast()) Overdue @else Pending @endif | |
No Invoices Found@if(request('search') || request('property_id') || request('cons_type')) No invoices match your search criteria. Try adjusting your filters. @else You don't have any utility invoices yet. @endif Create Your First Invoice |
||||||
Showing {{ $invoices->firstItem() }} to {{ $invoices->lastItem() }} of {{ $invoices->total() }} entries