Clinic Leader Dr.
Clinic dashboard
@php
$mode = $viewMode ?? 'none';
$isPeriod = in_array($mode, ['monthly', 'quarterly', 'yearly']);
$heroCards = $mode === 'daily' ? $dailyChecks : ($isPeriod ? $monthlyChecks : []);
$hasData = ($mode === 'daily' && !empty($dailyChecks)) || ($isPeriod && !empty($monthlyChecks));
$heroValue = $hasData ? ($heroCards[0]['value'] ?? 0) : null;
$clinicLabel = $clinicConnection ?? 'Clinic';
$periodLabel = $hasData
? ($mode === 'daily'
? ($dailyDurationSummary['dateLabel'] ?? '')
: ($selectedMonthLabel ?? $selectedQuarter ?? ''))
: 'Select a view to load data';
$modeLabel = $hasData ? ucfirst($mode) : '';
@endphp
Pulse across reception, labs, and follow-ups tailored for {{ $clinicLeader }}.
Daily check
Monthly report
Mobile friendly
@php
$statusMode = $viewMode ?? 'none';
$isDailyMode = $statusMode === 'daily';
$isGeneratedMode = in_array($statusMode, ['monthly', 'quarterly', 'yearly'], true);
$cacheStamp = $cacheUpdatedAt ?? null;
@endphp
@if ($isDailyMode || $isGeneratedMode)
@if ($isDailyMode)
Live
Daily counts are live.
@elseif ($cacheStamp)
Generated
Cached {{ $cacheStamp }}.
@else
Not generated
Run Generate to build this period.
@endif
@endif
Total Consultations
{{ $heroValue !== null ? $heroValue : '—' }}
@if($hasData)
patients • {{ $modeLabel }} • {{ $clinicLabel }} • {{ $periodLabel }}
@else
Choose Daily, Monthly, Quarterly, or Yearly and apply filters to load data.
@endif