{% extends "base.html" %} {% load i18n %} {% block title %}{% trans "Payment History" %}{% endblock %} {% block content %}

{% trans "Payment History" %}

{% trans "Filter Payments" %}

{% trans "Clear" %}

{% trans "Recent Subscription Payments" %}

{% if subscription_payments %} {% for payment in subscription_payments %}
{{ payment.get_status_display }}
${{ payment.amount }} {{ payment.currency }}
{{ payment.created_at|date:"M d, Y" }}
{% endfor %} {% else %}

{% trans "No subscription payments found." %}

{% endif %}

{% trans "Recent Credit Purchases" %}

{% if credit_purchase_payments %} {% for payment in credit_purchase_payments %}
{{ payment.get_status_display }}
${{ payment.amount }} {{ payment.currency }}
{{ payment.created_at|date:"M d, Y" }}
{% endfor %} {% else %}

{% trans "No credit purchase payments found." %}

{% endif %}

{% trans "All Payments" %}

{% if payments %}
{% for payment in payments %} {% endfor %}
{% trans "Date" %} {% trans "Type" %} {% trans "Description" %} {% trans "Amount" %} {% trans "Status" %} {% trans "Actions" %}
{{ payment.created_at|date:"M d, Y H:i" }} {{ payment.get_payment_type_display }} {{ payment.description|truncatechars:50 }} ${{ payment.amount }} {{ payment.currency }} {{ payment.get_status_display }}
{% trans "View" %} {% if payment.is_succeeded %} {% trans "Receipt" %} {% endif %}
{% if payments.has_other_pages %} {% endif %} {% else %}

{% trans "No payments found" %}

{% trans "You haven't made any payments yet. When you purchase credits or subscribe to a plan, your payment history will appear here." %}

{% endif %}
{% endblock %}