{% extends "admin/index.html" %} {% load admin_dashboard %} {% comment %} Admin home page with an analytics dashboard rendered above the standard app/model list. Extends Django's built-in admin/index.html so the app list and "recent actions" sidebar are preserved via {{ block.super }}. Time window is driven by ?period=day|week|month|year|all and read by the admin_dashboard_stats template tag. {% endcomment %} {% block content %} {% admin_dashboard_stats as stats %}
| Agent | Users | New | Deposits | Withdrawals | Commission |
|---|---|---|---|---|---|
|
{{ a.name }}
{% if not a.is_active %}inactive{% endif %}
{% if a.code %}{% endif %}
|
{{ a.total_users }} | {% if a.new_users %}+{{ a.new_users }}{% else %}0{% endif %} | {{ a.deposits }} | {{ a.withdrawals }} | {{ a.commission }} |
| No agents registered yet. | |||||