{% if not is_granted("ROLE_POINTOFSALE") and not is_granted("ROLE_ATTENDEE") %} {% endif %} {% for order in orders %} {% if not is_granted("ROLE_POINTOFSALE") and not is_granted("ROLE_ATTENDEE") %} {% endif %} {% endfor %}
{{ "Reference"|trans }} {{'Organizer / Event / Date / Ticket'|trans}}{{'Attendee / POS'|trans}}{{'Order date'|trans}} {{'Status'|trans}}
{% if is_granted("ROLE_ADMINISTRATOR") %} {{ order.reference }} {% elseif is_granted("ROLE_ORGANIZER") %} {{ order.reference }} {% elseif is_granted("ROLE_POINTOFSALE") %} {{ order.reference }} {% elseif is_granted("ROLE_ATTENDEE") %} {{ order.reference }} {% endif %}
    {% for orderelement in order.orderelements %} {% if is_granted('ROLE_ADMINISTRATOR') or (is_granted('ROLE_ORGANIZER') and orderelement.belongsToOrganizer(app.user.organizer.slug)) or is_granted('ROLE_POINTOFSALE') or is_granted('ROLE_ATTENDEE') %} {% if (not app.request.get('event') or app.request.get('event') == orderelement.eventticket.eventdate.event.slug) and (not app.request.get('eventdate') or app.request.get('eventdate') == orderelement.eventticket.eventdate.reference) and (not app.request.get('eventticket') or app.request.get('eventticket') == orderelement.eventticket.reference) and (not app.request.get('organizer') or app.request.get('organizer') == orderelement.eventticket.eventdate.event.organizer.slug) %}
  • {% if is_granted("ROLE_ADMINISTRATOR") or is_granted("ROLE_ATTENDEE") %} {{ orderelement.eventticket.eventdate.event.organizer.name }} {% endif %} {{ orderelement.eventticket.eventdate.event.name }} {{ orderelement.eventticket.eventdate.startdate|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {{ orderelement.eventticket.name }}
    {{ orderelement.quantity }} {{ orderelement.quantity > 1 ? "tickets"|trans : "ticket"|trans }} {% if order.status == 0 %} {% for ticketReservation in orderelement.ticketsReservations if not ticketReservation.isExpired %} {% set dateInterval = ticketReservation.expiresAt|date_modify("+"~ services.getSetting('checkout_timeleft') ~" second").diff(date("now")) %} {% set secondsLeft = dateInterval|date("%i") * 60 + dateInterval|date("%s") %} {% if secondsLeft > 0 %} {{ "left before tickets are released"|trans }} {% endif %} {% endfor %} {% endif %}
  • {% endif %} {% endif %} {% endfor %}
{% if is_granted('ROLE_ADMINISTRATOR') %} {% include "Global/user-avatar.html.twig" with { user: order.user } %} {{ order.user.getCrossRoleName }} {% else %} {% include "Global/user-avatar.html.twig" with { user: order.user } %} {{ order.user.getCrossRoleName }} {% endif %} {{ order.createdAt|localizeddate('none', 'none', app.request.locale, date_timezone, date_format) }} {{ order.stringifyStatus|trans }} {% if not is_granted("ROLE_ATTENDEE") %} {% if order.deletedAt %}

{{ "Deleted"|trans }} {% endif %} {% endif %}
{% for order in orders %} {% if is_granted('ROLE_ORGANIZER') and not order.deletedAt %} {% endif %} {% if is_granted('ROLE_ATTENDEE') and not order.deletedAt %} {% endif %} {% if order.status == -2 or order.status == 1 %} {% endif %} {% endfor %}