@extends('layouts.app') @push('scripts') @endpush @section('content')
| Bill # | Customer | Period | Amount | Status | Actions | |
|---|---|---|---|---|---|---|
| WTR-{{ str_pad($bill->BillID, 5, '0', STR_PAD_LEFT) }} |
{{ $bill->CustomerName }}
{{ $bill->CustomerEmail }}
|
{{ $bill->BillingPeriod }}
Due: {{ \Carbon\Carbon::parse($bill->DueDate)->format('M d, Y') }}
|
{{ number_format($bill->TotalBill, 2) }} KES
@if($bill->BalanceCF > 0)
Balance: {{ number_format($bill->BalanceCF, 2) }} KES
@endif
|
@if($bill->BalanceCF <= 0) Paid @elseif(\Carbon\Carbon::parse($bill->DueDate)->isPast()) Overdue @else Pending @endif | View Print | |
| No water bills found. | ||||||