@extends('layouts.app') @section('title', 'Meter Reading Details') @section('content')

Meter Reading Details

Reading Date: {{ $reading->reading_date->format('F d, Y H:i') }}

Client Information

Account Number: {{ $reading->client->account_number }}
Name: {{ $reading->client->name }}
Meter Number: {{ $reading->client->meter_number ?? 'N/A' }}
Address: {{ $reading->client->address ?? '-' }}

Reading Data

Current Reading: {{ number_format($reading->reading_value, 2) }} cu.m
Previous Reading: {{ number_format($reading->previous_reading ?? 0, 2) }} cu.m

Units Consumed: {{ number_format($reading->units_consumed ?? 0, 2) }} cu.m
Recorded By: {{ $reading->recorded_by ?? '-' }}

@if ($reading->notes)

Notes:
{{ $reading->notes }}

@endif
Status: {{ ucfirst($reading->status) }}
@if ($reading->status === 'draft')

This reading is pending approval. Review the data and approve to generate a billing statement.

@csrf
@csrf
@elseif ($reading->status === 'approved') @if ($reading->isBillable()) {{-- Approved, but its bill was voided or cancelled: the consumption is unbilled again and needs a replacement bill. --}}
This reading is approved but has no billing standing against it — the previous bill was voided or cancelled.
@csrf
@else
This reading has been approved and a billing has been generated.
@endif @if ($reading->billing) View Generated Billing @endif @else
This reading has been rejected.
@endif
Back to Readings
@endsection