{% 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}) }}
{% if orders.getTotalItemCount %} {% if not is_granted("ROLE_POINTOFSALE") %} {% endif %} {% endif %}

{% if is_granted("ROLE_POINTOFSALE") %}
{% else %}
{% if app.request.get('event') %}
{% endif %} {% if app.request.get('event') and app.request.get('eventdate') %}
{% endif %} {% endif %} {% if is_granted("ROLE_ADMINISTRATOR") %}
{% endif %}
{% if not is_granted("ROLE_POINTOFSALE") %}
{% set paymentGateways = services.getPaymentGateways({}).getQuery().getResult() %} {% if paymentGateways|length > 0 %}
{% for paymentGateway in paymentGateways %}
{% 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 %}