{{ $label ?? 'Metric' }} — files behind the number Back to the report @if ($label === null)
That metric can’t be broken down into files. Go back and pick a figure on the report.
@else {{-- What this list is --}}
{{ $label }} @if ($period) · {{ $period }} @endif
@if ($kind === 'live') Where these files sit right now, longest-waiting first. @if ($mode === 'cohort') Limited to clients created {{ $fromLabel }} – {{ $toLabel }}. @endif @elseif ($mode === 'cohort') Clients created {{ $fromLabel }} – {{ $toLabel }} who have ever reached this stage, whenever they reached it. @else Files whose event fell between {{ $fromLabel }} and {{ $toLabel }}. @endif This is the same query the report counted, listed rather than counted, so the total below is the figure that was clicked.
{{-- Total + controls --}}
{{ number_format($total ?? 0) }} {{ $unit === 'records' ? Str::plural('record', $total ?? 0) : Str::plural('client file', $total ?? 0) }} @if ($search !== '') · {{ number_format($rows?->total() ?? 0) }} matching “{{ $search }}” @endif
{{-- Table --}}
@forelse ($rows ?? [] as $row) @php $reference = '1' . str_pad((string) $row->client_id, 5, '0', STR_PAD_LEFT); $name = trim(implode(' ', array_filter([ $row->title, $row->name_first, $row->name_middle, $row->name_last, ]))); $eventAt = $row->event_at ? \Illuminate\Support\Carbon::parse($row->event_at) : null; @endphp @empty @endforelse
Reference Client Status Lead source Created {{ $kind === 'live' ? 'In status since' : 'Event date' }} What counted
{{ $reference }} {{ $name !== '' ? $name : 'Client #' . $row->client_id }} @if ($row->case_number)
APP {{ $row->case_number }}
@endif
{{ $row->status ?? '—' }} {{ $row->lead_source ?? '—' }} {{ $row->client_created_at ? \Illuminate\Support\Carbon::parse($row->client_created_at)->format('j M Y') : '—' }} @if ($eventAt) {{ $eventAt->format('j M Y') }}
{{ $eventAt->diffForHumans() }}
@else — @endif
{{ $row->source ?? '—' }} @if ($unit === 'clients' && ($row->record_count ?? 1) > 1) ×{{ $row->record_count }} @endif
No files behind this figure @if ($search !== '') match “{{ $search }}”. @else — the metric is zero for this window. @endif
@if ($rows && $rows->hasPages())
{{ $rows->links() }}
@endif
@endif