{#
 # For the full copyright and license information, please view the
 # docs/licenses/LICENSE.txt file that was distributed with this source code.
 #}
{% extends '@PrestaShop/Admin/layout.html.twig' %}

{% block content %}
  {% block category_showcase_card %}
    {{ include('@PrestaShop/Admin/Sell/Catalog/Categories/Blocks/showcase_card.html.twig') }}
  {% endblock %}

  {% block categories_kpis %}
    {{ render(controller(
      'PrestaShopBundle\\Controller\\Admin\\CommonController::renderKpiRowAction',
      {kpiRow: categoriesKpi}
    )) }}
  {% endblock %}

  {% block categories_breadcrumb %}
    {{ include('@PrestaShop/Admin/Sell/Catalog/Categories/Blocks/breadcrumb.html.twig') }}
  {% endblock %}

  {% block categories_listing %}
    {% embed '@PrestaShop/Admin/Common/Grid/grid_panel.html.twig' with {grid: categoriesGrid} %}
      {% block grid_panel_footer %}
        {{ include('@PrestaShop/Admin/Sell/Catalog/Categories/Blocks/listing_panel_footer.html.twig') }}
      {% endblock %}

      {% block grid_panel_extra_content %}
        {{ include('@PrestaShop/Admin/Sell/Catalog/Categories/Blocks/delete_categories_modal.html.twig') }}
      {% endblock %}
    {% endembed %}
  {% endblock %}
{% endblock %}

{% block javascripts %}
  {{ parent() }}

  <script src="{{ asset('themes/default/js/bundle/pagination.js') }}"></script>
  <script src="{{ asset('themes/new-theme/public/category.bundle.js') }}"></script>
{% endblock %}
