{% load tags_personnaliser %}

<div class="col-12 col-lg-9" style="overflow-y: auto;">
    <nav class="navbar navbar-danger bg-danger d-lg-none">
        <div class="container-fluid">
            <a class="navbar-brand" href="#">CERFIG</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
                <!-- <a class="navbar-brand" href="#">Hidden brand</a> -->
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                    {% if user|has_group:"Administration" %}
                    <li class="nav-item">
                        <a class="nav-link d-flex text-white fw-bold" aria-current="page" href="{% url 'index' %}">
                            <i class="bi bi-backpack4 d-block" style="width: 50px;"></i>
                            Tableau de bord
                        </a>
                    </li>
                    {% endif %}
                    <li class="nav-item">
                        <a class="nav-link d-flex text-white fw-bold" href="{% url 'gestion_produit:index' %}">
                            <i class="bi bi-backpack4 d-block" style="width: 50px;"></i>
                            Gestion des produits
                        </a>
                    </li>
                    {% if user|has_group:"Administration" %}
                    <li class="nav-item">
                        <a class="nav-link d-flex text-white fw-bold" href="{% url 'gestion_fournisseur:index' %}" tabindex="-1" aria-disabled="true">
                            <i class="bi bi-truck d-block" style="width: 50px;"></i>
                            Gestion des fournisseurs
                        </a>
                    </li>
                    {% endif %}
                    <li class="nav-item">
                        <a class="nav-link d-flex text-white fw-bold" href="{% url 'gestion_vehicule:index' %}" tabindex="-1" aria-disabled="true">
                            <i class="bi bi-truck d-block" style="width: 50px;"></i>
                            Gestion des véhicules
                        </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link d-flex text-white fw-bold" href="{% url 'authentification:deconnexion' %}" tabindex="-1" aria-disabled="true">
                            <i class="bi bi-person-dash d-block" style="width: 50px;"></i>
                            Deconnexion
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>    
</div>