{% if events.getTotalItemCount > 0 %}
{% for event in events %}
{% for eventDate in event.eventdates if eventDate.canBeScannedBy(app.user.scanner) %}
{% endfor %}
{% endfor %}
{% else %}
{% include "Global/message.html.twig" with { type: "info", message: ('No events found'|trans), icon: "fas fa-exclamation-circle" } %}
{% endif %}
{{ knp_pagination_render(events, null, {}, {'align': 'center'}) }}