{% extends 'base.html' %} {% load humanize %} {% block title %}SMS Logs{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
Every SMS sent by the system โ payment confirmations, approvals, reminders
| Date & Time | Type | Recipients | Message | Loan / Borrower | Amount | Status | Actions |
|---|---|---|---|---|---|---|---|
|
{{ log.created_at|date:"d/m/Y" }} {{ log.created_at|date:"H:i:s" }} |
{% if log.sms_type == 'payment_confirmation' %} ๐ฐ Payment {% elif log.sms_type == 'loan_approval' %} โ Approval {% elif log.sms_type == 'loan_disbursement' %} ๐ธ Disbursement {% elif log.sms_type == 'overdue_reminder' %} โฐ Overdue {% elif log.sms_type == 'unknown_payment' %} โ Unknown Pmt {% elif log.sms_type == 'stk_push' %} ๐ฒ STK Push {% elif log.sms_type == 'test' %} ๐งช Test {% else %} {{ log.sms_type }} {% endif %} |
{% for phone in log.recipients.split %}
{{ phone|cut:"," }} {% endfor %} ({{ log.recipient_count }} recipient{{ log.recipient_count|pluralize }}) |
{{ log.message }}
View full
|
{% if log.loan_number %}{{ log.loan_number }} {% endif %} {{ log.borrower_name }} |
{% if log.amount %} KES {{ log.amount|floatformat:2|intcomma }} {% else %}โ{% endif %} | {% if log.status == 'sent' %} โ Sent {% elif log.status == 'failed' %} โ Failed {% else %} โ Partial {% endif %} | ๐ View {% if log.status != 'sent' %} {% endif %} |
|
๐ญ
No SMS logs yetSMS messages will appear here once the system starts sending them. |
|||||||