{# @var invite \App\Entity\Invite #} {% for invite in invites %} {% endfor %}
#
{{ loop.index }} {% if invite.usedBy %} Used by {{ invite.usedBy.username }}. {% else %} {% set invite_url = url('user_register', { code: invite.code }) %} {% endif %}