{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Manage amenities' | trans %} {% 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%': amenities.getTotalItemCount}) }}
{% if amenities.getTotalItemCount > 0 %}
{% for amenity in amenities %} {% endfor %}
{{'Name' | trans}} {{'Venues count' | trans}} {{'Icon' | trans}} {{'Status' | trans}}
{{ amenity.name }} {{ amenity.venues|length }} {% if amenity.hidden %} {{ "Hidden"|trans }} {% else %} {{ "Visible"|trans }} {% endif %} {% if amenity.deletedAt %}

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