{{-- Mobile: vertical list · Tablet (md+): item box grid --}}
@foreach ($navItems as $item)
@php
$href = 'javascript:void(0)';
$isActive = false;
if (isset($item['route']) && ! empty($item['route']) && Route::has($item['route'])) {
$href = route($item['route']);
$isActive = request()->routeIs($item['route']);
}
$activeTone = $isActive
? 'bg-brand/10 text-brand ring-1 ring-brand/20 shadow-sm dark:bg-primary-500/15 dark:text-primary-300 dark:ring-primary-500/30'
: 'text-muted-foreground hover:bg-muted/70 hover:text-foreground dark:hover:bg-muted/40';
$linkClass = 'group flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-sm font-medium transition-colors duration-200 '
. 'md:min-h-[4.25rem] md:flex-col md:items-center md:justify-center md:gap-1.5 md:px-2 md:py-3 md:text-center md:text-xs '
. $activeTone;
@endphp
-
@if (isset($item['icon']))
@endif
{{ $item['label'] }}
@endforeach