{% set il = inline_cls %}
{% set iid = identity %}
{% set pp = parent_pk %}
{% set base_url = "/admin/" ~ parent_identity ~ "/inline/" ~ iid ~ "/" ~ pp %}
{% set sortable = (order_field is defined and order_field) %}
{# ── Header ── #}
{% if icon %}{% endif %}
{{ label }}
{{ pagination.count }}
{% if sortable %}
sortable
{% endif %}
{# Search #}
{% if search_enabled %}
{% if search %}
{% endif %}
{% endif %}
{# Add button #}
{% if can_create %}
{% endif %}
{# ── Body ── #}
{# Drag handle column header #}
{% if sortable %}
{% endif %}
{# Delete checkbox column header — independent from sortable #}
{% if can_delete %}
{% endif %}
{% for col in display_columns %}
{{ column_labels[col] }}
{% endfor %}
{% if pagination.rows %}
{% for row in pagination.rows %}
{% set row_pk = il.encode_pk(row) %}