<ul class="menu">
    <li class="sidebar-title">Menu</li>

    <li class="sidebar-item {{ Route::is('dashboard') ? 'active' : '' }} ">
        <a href="{{ route('dashboard') }}" class='sidebar-link'>
            <i class="bi bi-grid-fill"></i>
            <span>Dashboard</span>
        </a>
    </li>
    
    @can('user-list')
    <li class="sidebar-item  has-sub {{ 
    Route::is('users.*') || Route::is('roles.*') ||
    Route::is('activity-logs.*')
     ? 'active' : '' }}">
        <a href="#" class='sidebar-link'>
            <i class="bi bi-gear"></i>
            <span>Administration</span>
        </a>
        <ul class="submenu  {{ 
    Route::is('users.*') || Route::is('roles.*') ||
    Route::is('activity-logs.*')
     ? 'active' : '' }}">
            @can('user-list')
            <li class="submenu-item {{ Route::is('users.*') ? 'active' : '' }}">
                <a href="{{ route('users.index') }}">Utilisateurs</a>
            </li>
            @endcan
            @can('role-list')
            <li class="submenu-item {{ Route::is('roles.*') ? 'active' : '' }}">
                <a href="{{ route('roles.index') }}">Rôles</a>
            </li>
            @endcan
            @can('logs')
            <li class="submenu-item {{ Route::is('activity-logs.*') ? 'active' : '' }}">
                <a href="{{ route('activity-logs.index') }}">Journaux d'activité</a>
            </li>
            @endcan
        </ul>
    </li>
    @endcan
    @can('parametre-list')
    <li class="sidebar-item {{ Route::is('parametres.*') ? 'active' : '' }}">
        <a href="{{ route('parametres.index') }}" class='sidebar-link'>
            <i class="bi bi-sliders"></i>
            <span>Paramètres</span>
        </a>
    </li>
    @endcan
 
    <li class="sidebar-item {{ Route::is('plaintes.*') ? 'active' : '' }} ">
        <a href="{{ route('plaintes.index') }}" class='sidebar-link'>
            <i class="bi bi-exclamation-circle-fill"></i>
            <span>Plaintes</span>
        </a>
    </li>
    <li class="sidebar-item {{ Route::is('financements.*') ? 'active' : '' }} ">
        <a href="{{ route('financements.index') }}" class='sidebar-link'>
            <i class="bi bi-exclamation-circle-fill"></i>
            <span>Dde Financement</span>
        </a>
    </li>
    {{-- @can('resolution-list') --}}
    {{-- <li class="sidebar-item {{ Route::is('resolutions.*') ? 'active' : '' }} ">
        <a href="{{ route('resolutions.index') }}" class='sidebar-link'>
            <i class="bi bi-exclamation-circle-fill"></i>
            <span>Proposition de résolution</span>
        </a>
    </li> --}}
    {{-- @endcan --}}
    
    {{-- <li class="sidebar-item {{ Route::is('investigations.*') ? 'active' : '' }} ">
        <a href="{{ route('investigations.index') }}" class='sidebar-link'>
            <i class="bi bi-search"></i>
            <span>Enquêtes</span>
        </a>
    </li> --}}
    {{-- <li class="sidebar-item {{ Route::is('appeals.*') ? 'active' : '' }} ">
        <a href="{{ route('appeals.index') }}" class='sidebar-link'>
            <i class="bi bi-arrow-repeat"></i>
            <span>Appels</span>
        </a>
    </li>
    <li class="sidebar-item {{ Route::is('reports.*') ? 'active' : '' }} ">
        <a href="{{ route('reports.index') }}" class='sidebar-link'>
            <i class="bi bi-bar-chart-fill"></i>
            <span>Rapports</span>
        </a>
    </li> --}}
    {{-- <li class="sidebar-item {{ Route::is('parametres') ? 'active' : '' }} ">
        <a href="{{ route('parametres') }}" class='sidebar-link'>
            <i class="bi bi-gear-fill"></i>
            <span>Paramètres</span>
        </a>
    </li> --}}

</ul>
