{# Table group — Alpine tab switching within a related group #} {% set first_tab_id = group.tabs[0].tab_id if group.tabs else '' %}
{% if group.tabs | length > 1 %}
{% for tab in group.tabs %} {% if tab.visible | default(true) %} {% endif %} {% endfor %}
{% endif %} {% for tab in group.tabs %} {% if tab.visible | default(true) %}
1 %}x-show="activeTab === '{{ tab.tab_id }}'"{% endif %} role="tabpanel">
{% if tab.create_url %} {% endif %}
{% for col in tab.columns %} {% endfor %} {% if tab.rows %} {% for item in tab.rows %} {% for col in tab.columns %} {% endfor %} {% endfor %} {% else %} {% endif %}
{{ col.label }}
{% if col.type == "badge" %} {{ item[col.key] | default("") }} {% elif col.type == "bool" %} {{ item[col.key] | bool_icon }} {% elif col.type == "date" %} {{ item[col.key] | dateformat }} {% elif col.type == "currency" %} {{ item[col.key] | currency(col.currency_code or "GBP") }} {% else %} {{ item[col.key] | default("") | truncate_text }} {% endif %}
No {{ tab.label | lower }} found.
{% endif %} {% endfor %}