{% if ajax is not defined %}
{% set ajax = false %}
{% endif %}
{% extends ajax ? 'Admin/admin.html.twig' : 'Admin/base.html.twig' %}
{% block content %}
<div class="subcontent">
{% if entity is not defined %}
{% set entity = app.request.attributes.get("_controller")|split("Controller")[1]|split("\\")[1] %}
{% endif %}
<div class="table-header flex row space bottom relative mblock">
{% if isMobile() %}
<div class="flex row space bottom-5 top-5">
{% include('Admin/search-box.html.twig') %}
</div>
<div class="flex row space">
{% include('Admin/counter.html.twig') %}
{% include('Admin/buttons.html.twig') %}
</div>
{% else %}
<div class="flex row space middle mblock">
<div>
{% include('Admin/search-box.html.twig') %}
</div>
<div class="left-40 mnomargin">
{% include('Admin/counter.html.twig') %}
</div>
</div>
<div>
{% include('Admin/buttons.html.twig') %}
</div>
{% endif %}
</div>
{% block table %}
<div id="tablebox">
{% if view is defined and view %}
{% include(view) %}
{% else %}
{% include(''~entity~((isMobile is defined and isMobile and isMobile()) ? mobileView is defined ? mobileView : '/mobile-list.html.twig' : '/list.html.twig')) %}
{% endif %}
</div>
{% set expanded = true %}
{% include('Admin/counter.html.twig') %}
{% endblock %}
</div>
{% endblock %}