{% extends 'companies/superadmin/base.html' %} {% load humanize %} {% block content %}

Platform Revenue Overview

Aggregated across all companies — sorted by date

{{ today|date:"d M Y" }}
All-Time Revenue
₦{{ platform_total_revenue|floatformat:0|intcomma }}
Today's Revenue
₦{{ platform_today_revenue|floatformat:0|intcomma }}
Total Orders
{{ platform_total_orders|intcomma }}
Active Companies
{{ active_companies }}
Daily Revenue — Last 30 Days
{% if daily_revenue %}
{% for day in daily_revenue %}
{{ day.day|date:"d M" }}
₦{{ day.total|floatformat:0|intcomma }}
{{ day.orders }} orders
{% endfor %}
{{ daily_revenue.0.day|date:"d M" }} {% with last_day=daily_revenue|last %} {{ last_day.day|date:"d M" }} {% endwith %}
{% else %}
No order data for the last 30 days.
{% endif %}
Top Companies by Revenue
{% if company_revenues %} {% for co in company_revenues %}
{{ forloop.counter }}
{{ co.company__name }}
₦{{ co.total|floatformat:0|intcomma }}
{{ co.orders }} orders
{% endfor %} {% else %}
No revenue data yet.
{% endif %}

Companies

New Company
{% for company in companies %}
{{ company.name }}

/{{ company.slug }}/

{% if company.is_active %} Active {% else %} Suspended {% endif %}
Plan {{ company.plan.name|default:"None" }}
Created {{ company.created_at|date:"M d, Y" }}
Manage Workspace
{% empty %}

No companies found

You haven't added any client companies yet.

Create Your First
{% endfor %}
{% endblock %}