{% extends "@AutoAdminAdmin/entity_layout.html.twig" %}

{% block inner_page_content %}
  <!-- Content Row -->
  <div class="row">
    <div class="col-12 table-responsive">
      <table class="table table-bordered table-striped">
        {% if table.head is not empty %}
          <thead>
          <tr>
            {% for headLabel in table.head %}
              <th>{{ headLabel|trans({}, 'aa_admin') }}</th>
            {% endfor %}
          </tr>
          </thead>
        {% endif %}
        {% if table.body is not empty %}
          <tbody>
          {% for label, value in table.body %}
            <tr>
              <td>{{ label }}</td>
              <td>{{ value|raw }}</td>
            </tr>
          {% endfor %}
          </tbody>
        {% endif %}
        {% if table.foot is not empty %}
          <tbody>
          <tr>
            <td colspan="2">
              {% for action in table.foot %}
                {% include '@AutoAdminAdmin/_partials/components/buttons/btn_link_splitted.html.twig' with {
                  link: action.link,
                  level: action.buttonColor,
                  icon: action.icon,
                  name: action.name,
                  classes: action.classes|default(''),
                } %}
              {% endfor %}
            </td>
          </tr>
          </tbody>
        {% endif %}
      </table>
    </div>
  </div>
{% endblock %}