{% extends "admin/layout.html" %} {% block title %}Payments & Revenue โ€“ Admin{% endblock %} {% block body %}

Payments & Revenue

All Stripe and manual payments in one view.

Export CSV
{% with messages = get_flashed_messages(with_categories=true) %}{% for cat, msg in messages %}{% endfor %}{% endwith %}
Total Revenue
${{ '%.2f'|format(total_revenue) }}
{{ total }} transaction(s)
This Month
${{ '%.2f'|format(revenue_this_month) }}
Current month
This Year
${{ '%.2f'|format(revenue_this_year) }}
Year to date
Showing
{{ total }}
{% if filter_year %}{{ filter_year }}{% if filter_month %}-{{ filter_month }}{% endif %}{% else %}All time{% endif %} ยท {{ filter_source|title }}
Clear

Payment Records

{{ total }} total
{% if payments %}
{% for p in payments %} {% endfor %}
User Plan / Description Amount Source Status Date
{% if p.username %}
{{ p.username }}
{{ p.email or '' }}
{% else %} Deleted user {% endif %}
{{ p.plan_name or p.description or 'โ€”' }} {% if p.notes %}
{{ p.notes }}
{% endif %}
${{ '%.2f'|format(p.display_amount) }} {{ (p.currency or 'USD')|upper }} {% if p.source == 'stripe' %} Stripe {% else %} Manual {% endif %} {{ (p.status or 'paid')|capitalize }} {{ (p.created_at or '')[:10] }}
{% if total_pages > 1 %}
Page {{ page }} of {{ total_pages }}
{% if page > 1 %} Previous {% endif %} {% if page < total_pages %} Next {% endif %}
{% endif %} {% else %}

No payment records found.

Try adjusting your filters.

{% endif %}
{% endblock %}