{% load i18n unfold %}
{% block extrahead %}
{% if plausible_domain %}
{% endif %}
{% endblock %}
{% block content %}
{% include "unfold/helpers/messages.html" %}
{% component "unfold/components/container.html" %}
{% component "unfold/components/flex.html" with class="gap-4 mb-4 !flex-col lg:!flex-row" %}
{% component "unfold/components/flex.html" with class="gap-4 !flex-col lg:!flex-row" %}
{% for stats in kpi %}
{% trans stats.label as label %}
{% component "unfold/components/card.html" with class="" label=label footer=stats.footer %}
{% component "unfold/components/text.html" %}
{# Room for the label in the card's corner (Unfold's CSS has no pr-32): a narrow card put the title under it #}
{{ stats.title }}
{% endcomponent %}
{% component "unfold/components/title.html" %}
{{ stats.metric_total }}
{% endcomponent %}
{% if stats.metric_success %}
{% component "unfold/components/text.html" with class="text-xs text-base-500 mt-1" %}
{{ stats.metric_success }}
{% endcomponent %}
{% endif %}
{% endcomponent %}
{% endfor %}
{% endcomponent %}
{% trans "Website performance in last 28 days" as title_ %}
{% component "unfold/components/card.html" with class="" title=title_ title_icon="monitoring" %}
{% component "unfold/components/chart/bar.html" with data=chart height=126 %}{% endcomponent %}
{% endcomponent %}
{% endcomponent %}
{% endcomponent %}
{% endblock %}