{% extends 'analytics/base.html' %} {% load static %}{% load i18n %} {% block title %}{% trans "Billing" %} – Analytics{% endblock %} {% block page_title %}Billing{% endblock %} {% block page_subtitle %}Revenue, subscriptions, and transactions{% endblock %} {% block filter_bar %} {% include 'analytics/includes/filter_bar.html' %} {% endblock %} {% block dashboard_content %}
{% trans "Total Revenue" %} ${{ total_revenue|floatformat:2 }}
{% trans "Revenue Today" %} ${{ today_revenue|floatformat:2 }}
{% trans "Revenue This Month" %} ${{ month_revenue|floatformat:2 }}
{% trans "Active Subscriptions" %} {{ active_subscriptions }}
{% trans "Total Donations" %} ${{ total_donations|floatformat:2 }}

{% trans "Daily Income" %} – {{ date_range_label }}

{% for key, value in request.GET.items %} {% if key != 'compare' %} {% endif %} {% endfor %}
{% if chart_income %}
{% else %}
{% trans "No income data for this period." %}
{% endif %}

{% trans "Top Plans" %}

{% for plan in top_plans %} {% empty %} {% endfor %}
{% trans "Plan" %} {% trans "Users" %}
{{ plan.current_plan__slug }} {{ plan.count }}
{% trans "No subscription data yet." %}

{% trans "Recent Transactions" %}

{% for inv in recent_invoices %} {% empty %} {% endfor %}
{% trans "Invoice" %} {% trans "User" %} {% trans "Amount" %} {% trans "Date" %}
{{ inv.invoice_number }} {{ inv.user.username }} ${{ inv.amount }} {{ inv.date|date:'Y-m-d' }}
{% trans "No transactions yet." %}
{% endblock %} {% block page_scripts %} {% endblock %}