{% 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 }}
{% if chart_income %}
{% else %}
{% trans "No income data for this period." %}
{% endif %}
| {% trans "Plan" %} |
{% trans "Users" %} |
{% for plan in top_plans %}
| {{ plan.current_plan__slug }} |
{{ plan.count }} |
{% empty %}
| {% trans "No subscription data yet." %} |
{% endfor %}
{% trans "Recent Transactions" %}
| {% trans "Invoice" %} |
{% trans "User" %} |
{% trans "Amount" %} |
{% trans "Date" %} |
{% for inv in recent_invoices %}
| {{ inv.invoice_number }} |
{{ inv.user.username }} |
${{ inv.amount }} |
{{ inv.date|date:'Y-m-d' }} |
{% empty %}
| {% trans "No transactions yet." %} |
{% endfor %}
{% endblock %}
{% block page_scripts %}
{% endblock %}