{{-- Menu Dashboard --}}
@php
    $stats = \App\Helpers\SidebarStatsHelper::getStats();
    $urgentIssues = ($stats['tickets']['urgenti'] ?? 0) + ($stats['contabilita']['rate_scadute'] ?? 0);
@endphp

<li class="nav-item mb-1">
    <a class="nav-link d-flex align-items-center text-dark {{ request()->routeIs('admin.dashboard') ? 'active bg-warning text-dark fw-bold' : '' }}" 
       href="{{ route('admin.dashboard') }}">
        <i class="fas fa-tachometer-alt me-2"></i>
        <span>Dashboard</span>
        
        {{-- Badge per notifiche urgenti --}}
        @if($urgentIssues > 0)
            <span class="badge bg-danger ms-auto">{{ $urgentIssues }}</span>
        @elseif(request()->routeIs('admin.dashboard'))
            <i class="fas fa-chevron-right ms-auto"></i>
        @endif
    </a>
</li>
