{% extends "admin/base.html" %} {% block page_title %}تراکنش‌های مالی{% endblock %} {% block page_subtitle %}لیست و وضعیت پرداخت‌های کاربران{% endblock %} {% block content %}
{{ total }}
کل تراکنش‌ها
{{ stats.successful or 0 }}
موفق
{{ stats.pending or 0 }}
در انتظار
{% if search %} {% endif %}
{% if invoices %} {% for invoice in invoices %}
{% if invoice.status == 'paid' or invoice.status == 'completed' %} {% elif invoice.status == 'pending' %} {% else %} {% endif %}
#{{ invoice.id }}
{% if invoice.purchase_type == 'plan' %}پلن{% elif invoice.purchase_type == 'gigabyte' %}حجم{% else %}{{ invoice.purchase_type }}{% endif %}
{{ "{:,}".format(invoice.amount) }} تومان
کاربر
{{ invoice.first_name or '---' }}
@{{ invoice.username or '---' }}
پنل
{{ invoice.panel_name }}
تاریخ
{{ invoice.created_at.strftime('%Y-%m-%d') if invoice.created_at else '-' }}
{{ invoice.created_at.strftime('%H:%M:%S') if invoice.created_at else '' }}
{% if invoice.status == 'pending' and invoice.order_id %} {% endif %}
{% endfor %} {% else %}

تراکنشی یافت نشد

هیچ تراکنشی با مشخصات وارد شده پیدا نشد.

{% endif %}
{% if total_pages > 1 %}
نمایش صفحه {{ page }} از {{ total_pages }}
{% if page > 1 %} قبلی {% endif %} {% if page < total_pages %} بعدی {% endif %}
{% endif %}
{% endblock %}