{% extends 'base.html' %} {% load static %} {% load utils_filters %} {% block title %}Settings - HAVEN GRAZURI ADVANCE{% endblock %} {% block content %}
{% if not is_admin_user %} {% endif %}

Settings

{% if is_admin_user %}

Manage system settings and preferences. Changes are saved automatically.

{% else %}

View system settings and preferences. Read-only mode - Admin access required to modify settings.

{% endif %}

💵 Loan Products

Biashara Loan

Business loan — weekly repayment, flat rate on principal. KES 2,000–200,000.

Flat rate on principal (default 15%)

One-time processing fee on principal

Penalty rate for late payments

Minimum loan amount allowed

Maximum loan amount allowed

Log Book Loan

Logbook secured loan — total fees 17% on principal. KES 1,000–1,000,000.

Combined fees on principal (default 17%: 5% initiation + 2% collection + 1% credit life + 3.5% services + 5.5% admin)

One-time initiation fee on principal (default 5%)

Penalty rate for late payments

Minimum loan amount allowed

Maximum loan amount allowed

General Loan Settings

Monthly penalty rate for late payments

Minimum credit score for auto-approval

📊 Reports & Statements

Configure reporting settings and system preferences

Customer Requests

Manage customer service requests and inquiries

Report Generation

How often to refresh the reports dashboard automatically

Default time period for generating reports

Send daily/weekly reports via email

Analytics & Insights

Enable detailed customer interaction tracking

Enable predictive analytics and ML insights

{% for category, category_name in categories %} {% if category != 'loan' %}

⚙️ {{ category_name }}

{% for setting in settings|get_item:category %}

{{ setting.description }}

{% if setting.is_public or user.is_staff %}
{% else %} Restricted {% endif %}
{% endfor %}
{% endif %} {% endfor %}
{% if is_admin_user %}

💳 SasaPay & SMS Integration

Manage SasaPay payment gateway and Africa's Talking SMS notifications.

Callback URLs (register with SasaPay):

IPN: https://uzuriapps.xyz/payments/sasapay/ipn/

STK: https://uzuriapps.xyz/payments/sasapay/stk-callback/

B2C: https://uzuriapps.xyz/payments/sasapay/disbursement-callback/

💾 System Backup

Create a complete backup of your system including database, media files, and configuration.

⬇️ Create System Backup
{% endif %} {% if is_admin_user and default_role_permissions %}

🛡️ Default Access Levels by Role

Configure default permissions that will be automatically assigned to new users based on their role. These can be overridden on a per-user basis.

{% for role in roles %}

🏷️ {{ role|replace }}

{% with role_perms=default_role_permissions|get_item:role %} {% if role_perms %}
{% for module, actions in role_perms.items %}
📦 {{ module|replace }}
{% for action_data in actions %} {% comment %}Convert module name to code for API call{% endcomment %} {% with module_code=module|lower|cut:" "|cut:"&"|cut:"-" %}
{% endwith %} {% endfor %}
{% endfor %}
{% else %}

No default permissions configured for this role yet.

{% endif %} {% endwith %}
{% endfor %}
{% endif %} {% endblock %} {% block extra_js %} {% endblock %}