{% extends "Global/layout.html.twig" %} {% if is_granted('ROLE_ADMINISTRATOR') %} {% set pagetitle = 'Manage venues' | trans %} {% else %} {% set pagetitle = 'My venues' | trans %} {% endif %} {% block title %}{{pagetitle}}{% endblock %} {% block content %} {% set navigation = [{ "dashboard_index": ('Dashboard' | trans), "current":(pagetitle) }] %} {% include "Global/navigation.html.twig" with navigation %}
{{ "%resultsCount% result(s) found"|trans({'%resultsCount%': venues.getTotalItemCount}) }}
{% if is_granted('ROLE_ADMINISTRATOR') %} {% elseif is_granted('ROLE_ORGANIZER') %} {% endif %}
{% if venues.getTotalItemCount > 0 %}
{% if is_granted('ROLE_ADMINISTRATOR') %} {% endif %} {% for venue in venues %} {% if is_granted('ROLE_ADMINISTRATOR') %} {% endif %} {% endfor %}
{{'Name' | trans}} {{'Image' | trans}}{{'Organizer' | trans}}{{'Events count' | trans}} {{'Status' | trans}}
{{ venue.name }} {{ venue.organizer ? venue.organizer.name : "Added by administrator" }} {{ venue.eventdates|length }} {% if venue.hidden %} {{ "Hidden"|trans }} {% else %} {{ "Visible"|trans }} {% endif %}

{% if venue.listedondirectory %} {{ "Listed on the directory"|trans }} {% else %} {{ "Not listed on the directory"|trans }} {% endif %} {% if venue.deletedAt %}

{{ "Deleted"|trans }} {% endif %}
{{ knp_pagination_render(venues, null, {}, {'align': 'center'}) }}
{% else %} {% include "Global/message.html.twig" with { type: "info", message: ('No venues found'|trans), icon: "fas fa-exclamation-circle" } %} {% endif %}
{% endblock %} {% block javascripts %} {% endblock %}