{% extends 'base.html' %} {% load static %} {% block title %}Notifications - {{ block.super }}{% endblock %} {% block content %}

Notifications & System Alerts

īš€
{% if is_admin %}
đŸ’ĩ

Loan Portfolio

KES {{ loan_statistics.total_disbursed|floatformat:0 }}

{{ loan_statistics.active_loans }} Active Loans

→
đŸ‘Ĩ

Users

{{ user_statistics.total_users }}

{{ user_statistics.active_users }} Active

→
âš ī¸

Default Rate

{{ loan_statistics.default_rate|floatformat:1 }}%

{{ loan_statistics.defaulted_loans }} Defaulted

→
⏰

Pending

{{ pending_applications.count }}

Applications

→
{% if system_alerts %}

System Alerts

{% for alert in system_alerts %}

{{ alert.title }}

{{ alert.message }}

{{ alert.priority|title }} {% if alert.action_url %} View Details → {% endif %}
{% endfor %}
{% endif %} {% if security_alerts %}

Security Alerts

{% for alert in security_alerts %} {% endfor %}
Alert Type Description Priority Time
{{ alert.title }}
{{ alert.message }} {{ alert.priority|title }} {{ alert.timestamp|timesince }} ago
{% endif %}

Recent Activity (Last 24 Hours)

    {% for activity in recent_activities %}
  • {% if not forloop.last %} {% endif %}

    {{ activity.user.get_full_name|default:"System" }} {{ activity.description }}

    {{ activity.model_name }} - {{ activity.object_id }}

  • {% empty %}
  • No recent activity

  • {% endfor %}
{% if overdue_loans %}

Overdue Loans

{% for loan in overdue_loans %} {% endfor %}
Borrower Loan Amount Due Date Days Overdue Actions
{{ loan.borrower.get_full_name }}
{{ loan.borrower.phone_number }}
KES {{ loan.total_amount|floatformat:2 }} {{ loan.due_date|date:"M d, Y" }} {{ loan.due_date|timesince }} overdue View Details
{% endif %} {% if pending_applications %}

Pending Applications

{% for application in pending_applications %} {% endfor %}
Applicant Loan Amount Applied Date Status Actions
{{ application.borrower.get_full_name }}
{{ application.borrower.phone_number }}
KES {{ application.requested_amount|floatformat:2 }} {{ application.created_at|date:"M d, Y" }} Pending Review Review
{% endif %} {% endif %}

Your Notifications

{% for notification in notifications %}

{{ notification.title }}

{{ notification.age_display }} ago {% if not notification.is_read %} {% endif %}

{{ notification.message }}

{% if notification.action_url %}
Click to view →
{% endif %}
{% empty %}

No notifications to display

{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}