{# ============================================================ #} {# — opinionated card layout #} {# #} {# The standard layout that covers most cards: #} {# • header — icon + title, then the `badges` slot, on the #} {# left; the `actions` slot (buttons, dropdown…) on the #} {# right #} {# • body — the default slot #} {# • footer — `footer` slot at the start, `footer_end` slot #} {# at the end #} {# #} {# Every section is optional; the card renders only what it is #} {# given. For a fully custom surface, use . #} {# #} {# Props: #} {# title – heading text #} {# icon – leading icon name for the heading #} {# tight – remove body padding (full-bleed tables/lists) #} {# class – extra classes on the .card surface #} {# body_class – extra classes on the .card-body #} {# #} {# Slots: #} {# (default) – card body content #} {# badges – header, just after the title (status, counts) #} {# actions – header, end-aligned (buttons, dropdown…) #} {# footer – footer, start-aligned #} {# footer_end – footer, end-aligned #} {# ============================================================ #}
{% if title or icon or badges or actions %}
{% if title or icon %}

{% if icon %}{% endif %} {% if title %}{{ title }}{% endif %}

{% endif %} {% if badges %}
{{ badges }}
{% endif %} {% if actions %}
{{ actions }}
{% endif %}
{% endif %} {{ slot }} {% if footer or footer_end %}
{% if footer %}
{{ footer }}
{% endif %} {% if footer_end %}
{{ footer_end }}
{% endif %}
{% endif %}