{% extends "Global/layout.html.twig" %} {% set pagetitle = 'Manage help center categories' | 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%': categories.getTotalItemCount}) }}
{% if categories.getTotalItemCount > 0 %}
{% for category in categories %} {% endfor %}
{{'Name' | trans}} {{'Articles count' | trans}} {{'Icon' | trans}} {{'Status' | trans}}
{% if category.parent is not null %} {{ category.parent.name }} {% if category.parent.parent is not null %} {{ category.parent.parent.name }} {% endif %} {% endif %} {{ category.name }} {{ category.articles|length }} {% if category.hidden %} {{ "Hidden"|trans }} {% else %} {{ "Visible"|trans }} {% endif %} {% if category.deletedAt %}

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