{% macro card(title=None, body=None, footer=None, image=None, class="") %} {# DaisyUI Card Component Args: title: Card title body: Card body content (can be HTML) footer: Card footer content (can be HTML) image: Image URL for card-top image class: Additional CSS classes #}
{% if image %}
{{ title or 'Card image' }}
{% endif %}
{% if title %}

{{ title }}

{% endif %} {% if body %}

{{ body }}

{% endif %} {% if caller %} {{ caller() }} {% endif %}
{% if footer %}
{{ footer }}
{% endif %}
{% endmacro %} {% macro stat_card(title, value, desc=None, icon=None) %} {# DaisyUI Stat Card Component Args: title: Stat title value: Stat value (main number/text) desc: Description text icon: Icon HTML or class #}
{% if icon %}
{{ icon | safe }}
{% endif %}
{{ title }}
{{ value }}
{% if desc %}
{{ desc }}
{% endif %}
{% endmacro %}