{% 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 %}

SwiftPOS Subscription Revenue

Revenue earned from paid subscription plans — successful payments only

Verified Paid Only
All-Time Revenue
₦{{ sub_total_revenue|floatformat:0|intcomma }}
{{ sub_total_count }} payment{{ sub_total_count|pluralize }}
This Month
₦{{ sub_this_month|floatformat:0|intcomma }}
{{ sub_this_month_count }} payment{{ sub_this_month_count|pluralize }}
Last Month
₦{{ sub_last_month|floatformat:0|intcomma }}
{{ today|date:"F Y" }}
MoM Growth
{% if sub_mom_growth is not None %}
{% if sub_mom_growth >= 0 %}+{% endif %}{{ sub_mom_growth }}%
{% else %}
No prior month data
{% endif %}
Monthly Trend — Last 12 Months
{% if sub_monthly_trend %}
{% for m in sub_monthly_trend %}
{{ m.month|date:"M Y" }}
₦{{ m.total|floatformat:0|intcomma }}
{{ m.count }} payment{{ m.count|pluralize }}
{% endfor %}
{{ sub_monthly_trend.0.month|date:"M Y" }} {% with last_m=sub_monthly_trend|last %} {{ last_m.month|date:"M Y" }} {% endwith %}
{% else %}
No subscription payments recorded yet.
{% endif %}
Revenue by Plan
{% if sub_by_plan %} {% for p in sub_by_plan %}
{{ forloop.counter }}
{{ p.plan__name|default:"Unknown" }}
₦{{ p.total|floatformat:0|intcomma }}
{{ p.count }} paid
{% endfor %} {% else %}
No data yet.
{% endif %}
Top Subscribers
{% if sub_top_companies %} {% for co in sub_top_companies %}
{{ forloop.counter }}
{{ co.company__name }}
{{ co.count }} payment{{ co.count|pluralize }}
₦{{ co.total|floatformat:0|intcomma }}
{% endfor %} {% else %}
No 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 %}