<ul class="navbar-nav bg-gradient-primary sidebar sidebar-dark accordion" id="accordionSidebar">
    <a class="sidebar-brand d-flex align-items-center justify-content-center" href="index">
        <div class="sidebar-brand-icon rotate-n-15">
            <i class="fas fa-laugh-wink"></i>
        </div>
        <div class="sidebar-brand-text mx-3">OxyCardio</div>
    </a>

    <hr class="sidebar-divider my-0">

    <li class="nav-item {% if sidebar==0 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('index') }}">
            <i class="fas fa-fw fa-tachometer-alt"></i>
            <span>Dashboard</span>
        </a>
    </li>

    {% if rank==0 or rank==1 or rank==3 %}
    <hr class="sidebar-divider">
    <div class="sidebar-heading">
        Utilisateurs
    </div>

    <li class="nav-item {% if sidebar==1 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('charts_coeur') }}">
            <i class="fas fa-fw fa-heartbeat"></i>
            <span>Données du coeur</span></a>
    </li>
    <!-- Nav Item - Oxygène -->
    <li class="nav-item {% if sidebar==2 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('charts_oxy') }}">
            <i class="fas fa-fw fa-bullseye"></i>
            <span>Données oxygène</span></a>
    </li>
    <!-- Nav Item - Oxygène -->
    <li class="nav-item {% if sidebar==3 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('page_localisation') }}">
            <i class="fas fa-fw fa-map-marker"></i>
            <span>Localisation</span></a>
    </li>
    {% endif %}

    {% if rank==2 or rank==3 %}
    <hr class="sidebar-divider">
    <div class="sidebar-heading">
        équipe médicale
    </div>

    <li class="nav-item {% if sidebar==9 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('user_add') }}">
            <i class="fas fa-fw fa-users"></i>
            <span>Ajout utilisateur</span></a>
    </li>
    <li class="nav-item {% if sidebar==10 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('user_delmed') }}">
            <i class="fas fa-fw fa-user-minus"></i>
            <span>Suppression utilisateur</span></a>
    </li>
    <li class="nav-item {% if sidebar==4 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('monitoring') }}">
            <i class="fas fa-fw fa-desktop"></i>
            <span>Mono-Monitoring</span></a>
    </li>
    <li class="nav-item {% if sidebar==12 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('multimonitoring') }}">
            <i class="fas fa-fw fa-window-restore"></i>
            <span>Multi-Monitoring</span></a>
    </li>
    <li class="nav-item {% if sidebar==5 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('tables_patients') }}">
            <i class="fas fa-fw fa-user-injured"></i>
            <span>Liste patients</span></a>
    </li>
    {% endif %}

    {% if rank==3 %}
    <hr class="sidebar-divider">

    <div class="sidebar-heading">
        Administration
    </div>

    <li class="nav-item {% if sidebar==6 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('user_add') }}">
            <i class="fas fa-fw fa-users"></i>
            <span>Ajout utilisateur</span>
        </a>
    </li>
    <li class="nav-item {% if sidebar==11 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('user_del') }}">
            <i class="fas fa-fw fa-user-minus"></i>
            <span>Suppression utilisateur</span></a>
    </li>
    <li class="nav-item {% if sidebar==7 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('user_manage') }}">
            <i class="fas fa-fw fa-user-cog"></i>
            <span>Gestion accès</span>
        </a>
    </li>
    <li class="nav-item {% if sidebar==8 %}active{% endif %}">
        <a class="nav-link" href="{{ url_for('tables_admin') }}">
            <i class="fas fa-fw fa-table"></i>
            <span>Tables utilisateurs</span>
        </a>
    </li>
    {% endif %}

    <hr class="sidebar-divider d-none d-md-block">

</ul>