@extends('layouts.app') @section('title', 'Unread Meters') @section('content')

Clients Without a Reading

Meters not yet recorded for {{ $periodLabel }}

@if($canRecord) @endif
{{ $unreadCount }}
Not Read Yet
{{ $readCount }}
Already Read
Reading progress for {{ $periodLabel }} {{ $totalClients > 0 ? number_format(($readCount / $totalClients) * 100, 1) : '0.0' }}%
{{ $readCount }} / {{ $totalClients }}
{{ $readCount }} of {{ $totalClients }} active clients recorded.
@if($canRecord) @endif @forelse ($clients as $client) @php $lastReading = $client->latestReading; // Days since the last standing reading; a client that has // never been read is counted from the day they registered. $since = $lastReading?->reading_date ?? $client->registered_at ?? $client->created_at; @endphp @if($canRecord) @endif @empty @endforelse
Account # Client Meter # Address Last Reading Unread For Assigned ReaderAction
{{ $client->account_number }} {{ $client->name }} @if($client->is_disconnected) Disconnected @endif {{ $client->meter_number ?: '—' }} {{ $client->full_address ?: '—' }} @if($lastReading) {{ $lastReading->reading_date->format('M d, Y') }}
{{ number_format($lastReading->reading_value, 2) }} cu.m @else Never read @endif
@if($since) {{ \Carbon\Carbon::parse($since)->diffForHumans(null, true) }} @else — @endif {{ $client->assignedReader->name ?? 'Unassigned' }} Record
Every client has a reading for {{ $periodLabel }}.
{{ $clients->links('pagination::bootstrap-5') }}
@endsection