diff --git a/app/Services/Care/AdminOverviewService.php b/app/Services/Care/AdminOverviewService.php index f630c84..fababbe 100644 --- a/app/Services/Care/AdminOverviewService.php +++ b/app/Services/Care/AdminOverviewService.php @@ -410,19 +410,20 @@ class AdminOverviewService 'period_label' => 'This month', 'from' => $from->toDateString(), 'to' => $to->toDateString(), + // Lead with compact counts for the page hero (first 3); money lives in the grid below. 'kpis' => [ - ['label' => 'Revenue today', 'value' => $money((int) $today['revenue_today_minor'])], - ['label' => 'Collected MTD', 'value' => $money($finance['collected_minor'])], - ['label' => 'Outstanding', 'value' => $money($finance['outstanding_minor'])], ['label' => 'New patients MTD', 'value' => number_format($patients['new_patients'])], ['label' => 'Appointments MTD', 'value' => number_format($appointments['total'])], ['label' => 'Lab pending', 'value' => number_format($lab['pending'])], + ['label' => 'Visits MTD', 'value' => number_format($patients['total_visits'])], + ['label' => 'Revenue today', 'value' => $money((int) $today['revenue_today_minor'])], + ['label' => 'Collected MTD', 'value' => $money($finance['collected_minor'])], + ['label' => 'Outstanding', 'value' => $money($finance['outstanding_minor'])], ], 'breakdowns' => [ [ 'title' => 'Month-to-date snapshot', 'rows' => [ - ['label' => 'Visits', 'value' => number_format($patients['total_visits']), 'pct' => null], ['label' => 'Completed appointments', 'value' => number_format($appointments['completed']), 'pct' => null], ['label' => 'No-shows', 'value' => number_format($appointments['no_show']), 'pct' => null], ['label' => 'Lab completed', 'value' => number_format($lab['completed']), 'pct' => null], diff --git a/resources/views/components/care/page-hero.blade.php b/resources/views/components/care/page-hero.blade.php index a8ea8f0..e9e46b8 100644 --- a/resources/views/components/care/page-hero.blade.php +++ b/resources/views/components/care/page-hero.blade.php @@ -27,9 +27,9 @@ @if (count($stats) > 0)