{% extends "app/base.html" %} {% block body %}
{% comment %} {% endcomment %}
{% if invoices %} {% for i in invoices %} {% endfor %}
Invoice Id Status Total Amount Date Action
{{ i.invoice_id }} {% if i.payment_status == "UNPAID" %}
{{ i.get_payment_status_display }}
{% elif i.payment_status == "PAID" %}
{{ i.get_payment_status_display }}
{% endif %}
$ {{ i.total }} {{ i.invoice_date|date:"Y-m-d" }}
{% else %} {% endif %}
Showing {{ page_obj.start_index }} - {{ page_obj.end_index }} out of {{ page_obj.paginator.count }}
    {% if page_obj.has_previous %}
  • Prev
  • {% else %}
  • Prev
  • {% endif %} {% for num in page_obj.paginator.page_range %} {% if page_obj.number == num %}
  • {{ num }}
  • {% elif num >= page_obj.number|add:"-2" and num <= page_obj.number|add:"2" %}
  • {{ num }}
  • {% endif %} {% endfor %} {% if page_obj.has_next %}
  • Next
  • {% else %}
  • Next
  • {% endif %}
{% endblock body %}