From 1975488b7984662eb3e060e2251ba12911a19c7e Mon Sep 17 00:00:00 2001 From: isaacclad Date: Sun, 28 Jun 2026 13:53:09 +0000 Subject: [PATCH] Fold contractor count into Visitors Today dashboard card. Remove the standalone Contractors stat tile and show the contractor total as a subtitle under Visitors Today. Co-authored-by: Cursor --- resources/views/frontdesk/dashboard.blade.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/views/frontdesk/dashboard.blade.php b/resources/views/frontdesk/dashboard.blade.php index 602027d..3fabafe 100644 --- a/resources/views/frontdesk/dashboard.blade.php +++ b/resources/views/frontdesk/dashboard.blade.php @@ -1,7 +1,12 @@ @php $cards = [ - ['label' => 'Visitors Today', 'value' => number_format($stats['visitors_today']), 'href' => route('frontdesk.visits.index')], + [ + 'label' => 'Visitors Today', + 'value' => number_format($stats['visitors_today']), + 'meta' => number_format($stats['contractors_today']).' contractor'.($stats['contractors_today'] === 1 ? '' : 's'), + 'href' => route('frontdesk.visits.index'), + ], ['label' => 'Currently Inside', 'value' => number_format($stats['currently_inside']), 'href' => route('frontdesk.visits.index', ['status' => 'checked_in'])], ['label' => 'Expected Arrivals', 'value' => number_format($stats['expected_arrivals']), 'href' => route('frontdesk.visits.index', ['status' => 'expected'])], ['label' => 'Waiting', 'value' => number_format($stats['waiting']), 'href' => route('frontdesk.visits.index', ['status' => 'waiting'])], @@ -9,7 +14,6 @@ ['label' => 'Pending Approval', 'value' => number_format($stats['pending_approvals']), 'href' => route('frontdesk.visits.index', ['status' => 'waiting'])], ['label' => 'Checked Out', 'value' => number_format($stats['checked_out_today']), 'href' => route('frontdesk.visits.index', ['status' => 'checked_out'])], ['label' => 'Deliveries', 'value' => number_format($stats['deliveries_today']), 'href' => route('frontdesk.visits.index')], - ['label' => 'Contractors', 'value' => number_format($stats['contractors_today']), 'href' => route('frontdesk.visits.index')], ]; @endphp @@ -59,6 +63,9 @@

{{ $card['label'] }}

{{ $card['value'] }}

+ @if (! empty($card['meta'])) +

{{ $card['meta'] }}

+ @endif
@endforeach