<aside class="admin-settings-sidebar" aria-label="Navigation des parametres">
    <div class="admin-settings-sidebar-header">
        <p>Parametres</p>
        <strong>Configuration</strong>
    </div>

    <nav class="admin-settings-nav">
        <a class="{{ current_route == 'admin_settings' ? 'is-active' : '' }}" href="{{ path('admin_settings') }}">
            Vue d'ensemble
        </a>

        {% if is_granted('ROLE_ADMIN') %}
            <p>Boutique</p>
            <a class="{{ current_route starts with 'admin_shop_config' ? 'is-active' : '' }}" href="{{ path('admin_shop_config') }}">
                Configuration boutique
            </a>
            <a class="{{ current_route starts with 'admin_payment' ? 'is-active' : '' }}" href="{{ path('admin_payment') }}">
                Methodes de paiement
            </a>
            <a class="{{ current_route starts with 'admin_product_tax' ? 'is-active' : '' }}" href="{{ path('admin_product_tax') }}">
                Taxes
            </a>
            <a class="{{ current_route starts with 'admin_shop_information_block' ? 'is-active' : '' }}" href="{{ path('admin_shop_information_block') }}">
                Informations boutique
            </a>
        {% endif %}

        {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_SHIPPING') %}
            <p>Livraison</p>
            <a class="{{ current_route starts with 'admin_shipping_config' ? 'is-active' : '' }}" href="{{ path('admin_shipping_config') }}">
                Transporteurs
            </a>
            <a class="{{ current_route starts with 'admin_shipping_price' ? 'is-active' : '' }}" href="{{ path('admin_shipping_price') }}">
                Frais de port
            </a>
            <a class="{{ current_route starts with 'admin_shipping_additional' ? 'is-active' : '' }}" href="{{ path('admin_shipping_additional') }}">
                Supplements
            </a>
        {% endif %}

        {% if is_granted('ROLE_ADMIN') %}
            <a class="{{ current_route starts with 'admin_shipping_zone' ? 'is-active' : '' }}" href="{{ path('admin_shipping_zone') }}">
                Zones
            </a>
            <a class="{{ current_route starts with 'admin_shipping_country' ? 'is-active' : '' }}" href="{{ path('admin_shipping_country') }}">
                Pays
            </a>
        {% endif %}

        {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_TRACKING') %}
            <p>Site</p>
            {% if is_granted('ROLE_ADMIN') %}
                <a class="{{ current_route starts with 'admin_contact' ? 'is-active' : '' }}" href="{{ path('admin_contact') }}">
                    Base
                </a>
            {% endif %}
            <a class="{{ current_route starts with 'admin_tracking' ? 'is-active' : '' }}" href="{{ path('admin_tracking') }}">
                Tracking
            </a>
        {% endif %}

        {% if is_granted('ROLE_ADMIN') %}
            <a class="{{ current_route starts with 'admin_user' ? 'is-active' : '' }}" href="{{ path('admin_user') }}">
                Utilisateurs
            </a>
            <a class="{{ current_route starts with 'admin_locale' ? 'is-active' : '' }}" href="{{ path('admin_locale') }}">
                Locales
            </a>
        {% endif %}
    </nav>
</aside>
