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

TRANSACTION SEARCH

Query Transaction

Search and view a specific transaction from your transaction history.

Find a transaction

Enter the required information below to search your transaction history.

{% if form.errors %}
Please check the information entered. {% for field in form %} {% for error in field.errors %}

{{ error }}

{% endfor %} {% endfor %}
{% endif %}
{% csrf_token %}
{{ form|crispy }}
{% if item %}

SEARCH RESULTS

Transactions Found

The transactions matching your search are shown below.

{% for each in item %} {% endfor %}
# Network Volume Status Number Cost Old Balance New Balance Date Description Email Request ID
{{ forloop.counter }} {% if each.d_network %} {{ each.d_network }} {% else %} — {% endif %} {% if each.volume %} {{ each.volume }} {% else %} — {% endif %} {% if each.status == "Successful" %} Successful {% elif each.status == "Unsuccessful" %} Failed {% elif each.status == "Pending" %} Pending {% else %} {{ each.status }} {% endif %} {% if each.phone_number %} {{ each.phone_number }} {% else %} — {% endif %} ₦{{ each.cost }} ₦{{ each.old_balance }} ₦{{ each.new_balance }} {{ each.date }}
{{ each.transaction }}
{{ each.email }}
{{ each.request_id }}
{% 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 %} {% elif is_post %}

No transactions found

We couldn't find any transactions matching the information you entered. Check your search details and try again.

{% endif %}
{% endblock content %}