{% extends "Global/layout.html.twig" %} {% if is_granted("ROLE_ADMINISTRATOR") %} {% set pagetitle = 'Manage orders'|trans %} {% elseif is_granted("ROLE_ORGANIZER") %} {% set pagetitle = 'Attendees'|trans %} {% elseif is_granted("ROLE_ATTENDEE") %} {% set pagetitle = 'My tickets'|trans %} {% elseif is_granted("ROLE_POINTOFSALE") %} {% set pagetitle = 'My orders'|trans %} {% endif %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{"current":(pagetitle)}] %} {% include "Global/navigation.html.twig" with navigation %} {% if not is_granted('ROLE_ATTENDEE') %} {{ "%resultsCount% result(s) found"|trans({'%resultsCount%': orders.getTotalItemCount}) }} {{ "Sort by"|trans }} {{ knp_pagination_sortable(orders, "Creation date"|trans ~ ' (' ~ "desc"|trans ~ ')', "o.createdAt", {"direction": "desc", "criteria": "o.createdAt"}) }} {{ knp_pagination_sortable(orders, "Creation date"|trans ~ ' (' ~ "asc"|trans ~ ')', "o.createdAt", {"direction": "asc", "criteria": "o.createdAt"}) }} {% if orders.getTotalItemCount %} {% if not is_granted("ROLE_POINTOFSALE") %} {% endif %} {% endif %} {{ "Reference"|trans }} {% if is_granted("ROLE_POINTOFSALE") %} {{ "Event date"|trans }} {% else %} {{ "Event"|trans }} {% if app.request.get('event') %} {{ "Event date"|trans }} {% endif %} {% if app.request.get('event') and app.request.get('eventdate') %} {{ "Event ticket"|trans }} {% endif %} {% endif %} {% if is_granted("ROLE_ADMINISTRATOR") %} {{ "Organizer"|trans }} {% endif %} {{ "From date"|trans }} {{ "Until date"|trans }} {% if not is_granted("ROLE_POINTOFSALE") %} {{ "All"|trans }} {{ "Paid"|trans }} {{ "Awaiting payment"|trans }} {{ "Canceled"|trans }} {{ "Failed"|trans }} {% set paymentGateways = services.getPaymentGateways({}).getQuery().getResult() %} {% if paymentGateways|length > 0 %} {{ "All"|trans }} {% for paymentGateway in paymentGateways %} {{ paymentGateway.name }} {% endfor %} {% endif %} {% endif %} {% endif %} {% if orders.getTotalItemCount %} {% include "Dashboard/Shared/Order/manage-orders-table.html.twig" with {orders: orders} %} {% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No orders found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %} {{ knp_pagination_render(orders, null, {}, {'align': 'center'}) }} {% endblock %} {% block javascripts %} {% endblock %}