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

Meter Readings

@if(!auth()->user()->hasCompanyAdminAccess()) @endif
@if($isSuperAdmin) @endif @forelse ($readings as $reading) @if($isSuperAdmin) @endif @empty @endforelse
Reading DateCompanyClient Reading Value Previous Units Recorded By Status Action
{{ $reading->reading_date->format('M d, Y') }}{{ $reading->tenant->name ?? 'N/A' }} {{ $reading->client->name }}
{{ $reading->client->account_number }}
{{ number_format($reading->reading_value, 2) }} cu.m {{ number_format($reading->previous_reading ?? 0, 2) }} cu.m {{ number_format($reading->units_consumed ?? 0, 2) }} cu.m {{ $reading->recorded_by ?? '-' }} {{ ucfirst($reading->status) }}
View @if($reading->status === 'draft')
@csrf
@csrf
@elseif($reading->isBillable()) {{-- Approved but nothing standing against it: its bill was voided or cancelled, so the consumption needs billing again. --}}
@csrf
@else {{ ucfirst($reading->status) }} @endif
No meter readings found
{{ $readings->appends(request()->query())->links('pagination::bootstrap-5') }}
@endsection