Show Visitors Today total only without contractor subtitle.
Deploy Ladill Frontdesk / deploy (push) Successful in 34s
Deploy Ladill Frontdesk / deploy (push) Successful in 34s
Contractors are counted as visitors; drop the separate contractor line including the redundant zero state. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,12 +1,7 @@
|
|||||||
<x-app-layout title="Reception Dashboard">
|
<x-app-layout title="Reception Dashboard">
|
||||||
@php
|
@php
|
||||||
$cards = [
|
$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' => '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' => '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'])],
|
['label' => 'Waiting', 'value' => number_format($stats['waiting']), 'href' => route('frontdesk.visits.index', ['status' => 'waiting'])],
|
||||||
@@ -63,9 +58,6 @@
|
|||||||
<a href="{{ $card['href'] }}" class="rounded-2xl border border-slate-200 bg-white p-5 transition hover:border-indigo-300 hover:shadow-sm">
|
<a href="{{ $card['href'] }}" class="rounded-2xl border border-slate-200 bg-white p-5 transition hover:border-indigo-300 hover:shadow-sm">
|
||||||
<p class="text-xs font-medium uppercase tracking-wide text-slate-500">{{ $card['label'] }}</p>
|
<p class="text-xs font-medium uppercase tracking-wide text-slate-500">{{ $card['label'] }}</p>
|
||||||
<p class="mt-2 text-2xl font-semibold text-slate-900">{{ $card['value'] }}</p>
|
<p class="mt-2 text-2xl font-semibold text-slate-900">{{ $card['value'] }}</p>
|
||||||
@if (! empty($card['meta']))
|
|
||||||
<p class="mt-1 text-xs text-slate-400">{{ $card['meta'] }}</p>
|
|
||||||
@endif
|
|
||||||
</a>
|
</a>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user