{% extends "base.html" %} {% from "macros.html" import icon, btn, badge %} {% block title %}{{ t('Dashboard') }}{% endblock %} {% block content %} {# Stats Cards (Airy & Clean) #} {% if stats %}
{% for s in stats %}
{{ s.label }}
{{ s.count }} {% if s.trend is not None %} {{ icon('arrow-up' if s.trend >= 0 else 'arrow-down', 10) }} {{ s.trend | abs }}% {% endif %}
{{ t('View all') }} {{ icon('arrow-right', 12) }}
{% endfor %}
{% endif %}
{# Recent activity (Timeline) #} {% if can_view_logs %}
{{ icon('history', 16) }} {{ t('Recent Activity') }} {{ t('See all activity') }}
{% if recent_logs %} {% for log in recent_logs %}
{{ log.user_label }} {{ log.action }} {{ log.entity }} {% if log.entity_id %}#{{ log.entity_id }}{% endif %}
{{ log.date_label }}
{% endfor %} {% else %}
{{ icon('log', 36, 'empty-icon') }}

{{ t('No activity yet') }}

{{ t('System logs will appear here.') }}

{% endif %}
{% endif %} {# Models Quick Access #}
{{ icon('table', 16) }} {{ t('Quick Access') }}
{% if admin_models %} {% for m in admin_models %}
{{ icon('table', 16, 'text-brand') }}
{{ m.label }}
/{{ m.slug }}
{{ icon('arrow-right', 16) }}
{% endfor %} {% else %}

{{ t('No models registered') }}

{% endif %}
{% if widgets %}
{{ widgets }}
{% endif %} {% endblock %}