@extends('layouts.admin') @section('title', 'Billing Dashboard') @section('content')

Current calendar month claim readiness, with billing-code resolution separated from the next-minute threshold.

{{-- Status summary --}}

Claim ready

{{ $counts['green'] }}

Needs review

{{ $counts['amber'] }}

No code

{{ $counts['red'] }}

{{-- Composition chart --}}

Panel composition

@foreach ($rows as $row) @endforeach
Patient Status Stedi Minutes Days remaining
{{ $row['patient']->user->name ?? '—' }} @if (!$row['status']) Not computed @elseif ($row['status']->color === 'green') Claim ready @elseif ($row['status']->color === 'amber') {{ $row['status']->hasResolvedCode ? 'Code resolved; review' : 'Approaching' }} @else No resolved code @endif @if ($row['claim']) {{ $row['claim']->statusLabel() }} @else Not released @endif {{ $row['status']?->totalMinutes ?? 0 }} min @if ($row['status']?->baseThresholdMinutes !== null) next band {{ $row['status']->baseThresholdMinutes }} min @endif {{ $row['status']?->daysRemainingInMonth !== null ? $row['status']->daysRemainingInMonth . ' days' : '—' }} Drill down
@push('scripts') @endpush @endsection