{% set profileRoute = profile_route|default('user_profil') %} {% for user in users %} {% endfor %}
Utilisateur
Email
{% if staff %} Rôle {% else %} Société(s) {% endif %}
Statut
Équipe
{% if permissionAccess.can('MODIFIER_STAFF') %} {% include '@App/partials/components/badge_user.html.twig' with {user: user, taille: 40, role: true, email: false, staff: staff, societe: societe} %} {% else %} {% include '@App/partials/components/badge_user.html.twig' with {user: user, taille: 40, role: true, email: false, staff: staff, societe: societe} %} {% endif %} {{user.email}} {% if staff %} {{user.role}} {% else %}
{% set societes = attribute(user, 'societe')|default([]) %} {% if societes is iterable and societes|length > 0 %} {% for societeItem in societes %} {% if societeItem %} {% include '@App/partials/components/logo_societe.html.twig' with {societe: societeItem, taille: 40} %} {% endif %} {% endfor %} {% else %} - {% endif %}
{% endif %}
{% set teams = attribute(user, 'teams')|default([]) %} {% if teams is iterable and teams|length > 0 %}
{% for team in teams %} {% if team %} {{ attribute(team, 'name')|default(team.nom|default('Équipe')) }} {% endif %} {% endfor %}
{% else %} - {% endif %}
{% if permissionAccess.isManager() %} {% if contact_route is defined and societe and societe.contact != user %} {% endif %} {% endif %} {% if permissionAccess.can('SUPPRIMER_STAFF') %} {% endif %}