<aside class="left-sidebar">
    <!-- Sidebar scroll-->
    <div class="scroll-sidebar">
        <!-- Sidebar navigation-->
        <nav class="sidebar-nav">
        <ul id="sidebarnav">
    <!-- Profil utilisateur -->
    <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark profile-dd" href="#" aria-expanded="false">
            <img src="{{ asset('assets/images/users/avatar.png') }}" class="rounded-circle ms-2" width="30">
            <span class="hide-menu">{{ Auth::user()->username ?? 'Invité' }} </span>
        </a>
        <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('logout') }}" class="sidebar-link">
                    <i class="mdi mdi-power"></i>
                    <span class="hide-menu"> Déconnexion </span>
                </a>
            </li>
        </ul>
    </li>

    <!-- Dashboard -->
    <li class="sidebar-item">
   
        <a class="sidebar-link waves-effect waves-dark" href="{{ route('dashboard') }}" aria-expanded="false">
            <i class="mdi mdi-view-dashboard"></i>
            <span class="hide-menu">Dashboard</span>
        </a>
  
    </li>

    <!-- Préoccupation -->
    <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false">
            <i class="mdi mdi-comment-alert-outline"></i>
            <span class="hide-menu">Préoccupation</span>
        </a>
        <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('preoccupations.create') }}" class="sidebar-link">
                    <i class="mdi mdi-plus-circle-outline"></i>
                    <span class="hide-menu"> Ajouter</span>
                </a>
            </li>
            <li class="sidebar-item">
                <a href="{{ route('preoccupations.index') }}" class="sidebar-link">
                    <i class="mdi mdi-format-list-bulleted"></i>
                    <span class="hide-menu"> Liste</span>
                </a>
            </li>
        </ul>
    </li>

    <!-- Établissement -->
    <!-- <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false">
            <i class="mdi mdi-domain"></i>
            <span class="hide-menu">Établissement</span>
        </a>
        <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('etablissements.create') }}" class="sidebar-link">
                    <i class="mdi mdi-plus-circle-outline"></i>
                    <span class="hide-menu"> Ajouter</span>
                </a>
            </li>
            <li class="sidebar-item">
                <a href="{{ route('etablissements.index') }}" class="sidebar-link">
                    <i class="mdi mdi-format-list-bulleted"></i>
                    <span class="hide-menu"> Liste</span>
                </a>
            </li>
        </ul>
    </li> -->

    <!-- Université -->
    <!-- <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false">
            <i class="mdi mdi-school"></i>
            <span class="hide-menu">Université</span>
        </a>
        <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('universites.create') }}" class="sidebar-link">
                    <i class="mdi mdi-plus-circle-outline"></i>
                    <span class="hide-menu"> Ajouter</span>
                </a>
            </li>
            <li class="sidebar-item">
                <a href="{{ route('universites.index') }}" class="sidebar-link">
                    <i class="mdi mdi-format-list-bulleted"></i>
                    <span class="hide-menu"> Liste</span>
                </a>
            </li>
        </ul>
    </li> -->

    <!-- Module -->
  
    <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false">
            <i class="mdi mdi-table"></i>
            <span class="hide-menu">Module</span>
        </a>
        <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('modules.create') }}" class="sidebar-link">
                    <i class="mdi mdi-plus-circle-outline"></i>
                    <span class="hide-menu"> Ajouter</span>
                </a>
            </li>
            <li class="sidebar-item">
                <a href="{{ route('modules.index') }}" class="sidebar-link">
                    <i class="mdi mdi-format-list-bulleted"></i>
                    <span class="hide-menu"> Liste</span>
                </a>
            </li>
        </ul>
</li>

    <!-- Authentification -->
    <li class="sidebar-item">
        <a class="sidebar-link has-arrow waves-effect waves-dark" href="javascript:void(0)" aria-expanded="false">
            <i class="mdi mdi-account-circle"></i>
            <span class="hide-menu">Authentification</span>
        </a>
        <!-- <ul aria-expanded="false" class="collapse first-level">
            <li class="sidebar-item">
                <a href="{{ route('login') }}" class="sidebar-link">
                    <i class="mdi mdi-login"></i>
                    <span class="hide-menu"> Connexion</span>
                </a>
            </li>
       
            <li class="sidebar-item">
                <a href="{{ route('register') }}" class="sidebar-link">
                    <i class="mdi mdi-account-plus"></i>
                    <span class="hide-menu"> Inscription</span>
                </a>
            </li>
          
        </ul> -->
    </li>

    <!-- Déconnexion -->
    <li class="sidebar-item">
        <a class="sidebar-link waves-effect waves-dark" href="{{ route('logout') }}" aria-expanded="false">
            <i class="mdi mdi-power"></i>
            <span class="hide-menu">Déconnexion</span>
        </a>
    </li>
</ul>

        </nav>
        <!-- End Sidebar navigation -->
    </div>
    <!-- End Sidebar scroll-->
</aside>