{% include 'admin/includes/part.header.html' %}
Defaulters' table
{% for customer in customers %} {% endfor %}
# Name Phone Loan
Amount
(Kshs)
Expected
Daily Pay
(Kshs)
Amount
Paid
(Kshs)
Days
Defaulted
Amount
Defaulted
(Kshs)
Last Pay
{{customer.name}}
{{customer.phone}}

{{"{:,.2f}".format(customer.amount or 0 )}}

{{"{:,.2f}".format(customer.amount /30 )}}

{{"{:,.2f}".format(customer.paid_amount or 0)}}

{{customer.default_days}}

{{(customer.fine_amount * customer.default_days) - (customer.paid_amount or 0)}}

{% if customer.last_paid %}

{{customer.last_paid.strftime("%d/%m/%Y %H:%M:%S")}}

{%else%}

Not Paid

{%endif%}
{% set current_page = request.args.get('page', none) | int%} {% set pvis = '' %} {% set nvis = '' %} {% if last_page %} {% set nvis = 'disabled' %} {% endif %} {% if current_page == 0 or current_page == 1 %} {% set current_page = 1 %} {% set pvis = 'disabled' %} {% endif %} {% set next = current_page + 1%} {% set prev = current_page - 1%} Previous Next
{% include 'admin/includes/part.footer.html' %}