{# Determine current route and group flags for sidebar activation #}
{% set current_route = app.request.attributes.get('_route') %}
{% set isBookings = current_route starts with 'booking_' or current_route starts with 'bookingtype_' %}
{% set isVentes = current_route starts with 'vente_' or current_route starts with 'devis_' or current_route starts with 'venteretour_' %}
{% set isAchats = current_route starts with 'achat_' or current_route starts with 'commande_' %}
{% set isReparations = current_route starts with 'reparation_' or current_route starts with 'vehicule_' %}
{% set isCatalogues = current_route starts with 'produit_' or current_route starts with 'categorie_' or current_route starts with 'carrosserie_' or current_route starts with 'hotspot_' %}
{% set isGestion = current_route starts with 'depense_' or current_route starts with 'modelevente_' or current_route starts with 'vente_caisse' %}
{% set isNetwork = current_route starts with 'network_' %}
{% set isStock = current_route starts with 'etatstock_' or current_route starts with 'index_stock' %}
{% set isStatistiques = current_route starts with 'statistiques_' %}
{% set isClients = current_route starts with 'client_' or current_route starts with 'prospect_' or current_route starts with 'organisme_' %}
{% set isFournisseurs = current_route starts with 'fournisseur_' %}
{% set isConfiguration = current_route starts with 'utilisateur_' or current_route starts with 'trace_' or current_route starts with 'compte_' or current_route starts with 'magasin_' or current_route starts with 'marque_' or current_route starts with 'typeattribut_' or current_route starts with 'droit_' %}
{% set isSupport = current_route starts with 'ticket_' %}
{% set isTickets = current_route starts with 'ticket_' and current_route != 'ticket_manual' %}