{# Pagination fragment — pure Tailwind, preserves sort/filter/search state #} {% if table and table.total > table.page_size %} {% set total_pages = (table.total + table.page_size - 1) // table.page_size %}
{# Left: selection summary or row count #} 0 of {{ table.total }} selected {{ table.total }} row{{ 's' if table.total != 1 else '' }} {# Right: page buttons #}
{% for p in range(1, total_pages + 1) %} {% endfor %}
{% endif %}