{% extends "admin/base_site.html" %} {% load i18n unfold %} {% block breadcrumbs %}{% endblock %} {% block title %} {% trans 'Dashboard' %} | {{ site_title|default:_('Django site admin') }} {% endblock %} {% block branding %} {% include "unfold/helpers/site_branding.html" %} {% endblock %} {% block content %} {% include "unfold/helpers/messages.html" %}

{% trans 'System Overview' %}

{% for item in kpi %} {% component "unfold/components/card.html" %} {% component "unfold/components/text.html" %} {{ item.title }} {% endcomponent %}
{% component "unfold/components/title.html" %} {{ item.metric }} {% endcomponent %}
{% if item.footer %}
{{ item.footer|safe }}
{% endif %} {% endcomponent %} {% empty %}

{% trans "No statistics available for this panel." %}

{% endfor %}
{% if top_courses %}
{% component "unfold/components/card.html" %}

{% trans "Top 5 Popular Courses" %}

{% endcomponent %}
{% component "unfold/components/card.html" %}

{% trans "Transaction Status" %}

{% if tx_stats.total > 0 %}
{{ tx_stats.pct_success }}% {% trans "Success" %}
{% trans "Success" %}: {{ tx_stats.pct_success }}%
{% trans "Pending" %}: {{ tx_stats.pct_pending }}%
{% trans "Waiting" %}: {{ tx_stats.pct_waiting }}%
{% trans "Failed" %}: {{ tx_stats.pct_failed }}%
{% else %}
payments

{% trans "No transactions recorded yet." %}

{% endif %}
{% endcomponent %}
{% endif %} {% endblock %}