{% extends "dashboard/base.html" %} {% block title %}Overview{% endblock %} {% block content %}
{% for stat in stats %}
{{ stat.label }}
{{ stat.value }}
{% endfor %}

Revenue by Payment Provider

{% for pm in payment_methods %}
{{ pm.method }} {{ pm.count }} txns
${{ "%.2f"|format(pm.total_usd) }}
{% if pm.pct > 0 %}
{% endif %}
{% endfor %} {% if not payment_methods %}
No payment data available
{% endif %}

Recent Transactions (Last 20)

{% if recent_transactions %} {% for tx in recent_transactions %} {% endfor %}
Timestamp Service Buyer Amount Method Status
{{ tx.timestamp[:19] }} {{ tx.service_id[:16] }} {{ tx.buyer_id[:16] }} ${{ "%.4f"|format(tx.amount_usd) }} {{ tx.payment_method }} {% if tx.status_code < 400 %} {{ tx.status_code }} {% elif tx.status_code < 500 %} {{ tx.status_code }} {% else %} {{ tx.status_code }} {% endif %}
{% else %}
No transactions yet
{% endif %}
{% endblock %}