{% extends "newbase.html" %} {% load static %} {% block content %}

TRANSACTION HISTORY

All Transactions

View and track all your recent transactions.

{% if item %}
TRANSACTIONS Your transaction history
{% for each in item %} {% endfor %}
# Transaction Number Amount Status Date Action
{{ forloop.counter }}
{% if each.value == "DATA" %} {% elif each.value == "AIRTIME" %} {% elif each.value == "CABLE" %} {% elif each.value == "ELECTRICITY" %} {% else %} {% endif %}
{% if each.value == "DATA" and each.status == "Unsuccessful" %} Transaction failed. If your wallet was debited, your refund will be processed automatically. {% else %} {{ each.transaction }} {% endif %} {% if each.d_network %} {{ each.d_network }} {% else %} Transaction {% endif %}
{% if each.phone_number %} {{ each.phone_number }} {% else %} — {% endif %} ₦{{ each.cost }} {% if each.status == "Successful" %} Successful {% elif each.status == "Unsuccessful" %} Failed {% elif each.status == "Pending" %} Pending {% else %} {{ each.status }} {% endif %}
{{ each.date }}
View
{% if item.has_other_pages %}
{% if item.has_previous %} {% else %} {% endif %}
{% if item.number|add:'-2' > 1 %} 1 ... {% endif %} {% for i in item.paginator.page_range %} {% if item.number == i %} {{ i }} {% elif i > item.number|add:'-3' and i < item.number|add:'3' %} {{ i }} {% endif %} {% endfor %} {% if item.paginator.num_pages > item.number|add:'2' %} ... {{ item.paginator.num_pages }} {% endif %}
{% if item.has_next %} {% else %} {% endif %}
{% endif %} {% else %}

No transactions yet

Your completed and pending transactions will appear here.

{% endif %}
{% endblock content %}