{% extends "base.html" %} {% load i18n %} {% load static %} {% block title %}{% trans "Analytics Dashboard" %}{% endblock %} {% block content %}

{% trans "Analytics Dashboard" %}

{% trans "Key business metrics and service usage statistics" %}

{{ total_users }}

{% trans "Total Users" %}

${{ total_revenue|floatformat:2 }}

{% trans "Total Revenue" %}

{{ active_subscriptions }}

{% trans "Active Subscriptions" %}

{% trans "Monthly Revenue Trends" %}

{% if monthly_revenue %}
{% for month_data in monthly_revenue %} {% endfor %}
{% trans "Month" %} {% trans "Revenue" %}
{{ month_data.month }} ${{ month_data.revenue|floatformat:2 }}
{% else %}

{% trans "No revenue data available" %}

{% trans "Revenue information will appear here once payments are processed." %}

{% endif %}
{% if monthly_revenue %}

{% trans "Monthly Revenue Chart" %}

{% endif %}

{% trans "Service Usage Statistics" %}

{% if service_stats %}
{% for service in service_stats %} {% endfor %}
{% trans "Service Name" %} {% trans "Description" %} {% trans "Credit Cost" %} {% trans "Total Credits Consumed" %} {% trans "Unique Users" %} {% trans "Status" %}
{{ service.name }} {{ service.description|truncatechars:80 }} {{ service.credit_cost }} credits {{ service.total_credits_consumed|floatformat:2 }} {{ service.unique_users_count }} {% if service.is_active %} {% trans "Active" %} {% else %} {% trans "Inactive" %} {% endif %}
{% else %}

{% trans "No services found" %}

{% trans "Service usage statistics will appear here once services are configured and used." %}

{% trans "Add Service in Admin" %}

{% endif %}
{% endblock %}