{% extends 'base.html' %} {% load static %} {% block title %}System Settings - OptiNet Global Links{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

System Settings

Configure system-wide settings and integrations

Company Profile
{% if company_profile %}
Name: {{ company_profile.company_name }}
{% if company_profile.email %}
Email: {{ company_profile.email }}
{% endif %} {% if company_profile.phone %}
Phone: {{ company_profile.phone }}
{% endif %} {% if company_profile.company_logo %}
Logo: Logo
{% endif %} {% if company_profile.favicon %}
Favicon: Favicon
{% endif %} {% else %}

No company profile configured

{% endif %}
Email Configuration
{% if email_settings %}
Host: {{ email_settings.HOST|default:"Not set" }}
Port: {{ email_settings.PORT|default:"Not set" }}
User: {{ email_settings.HOST_USER|default:"Not set" }}
TLS: {% if email_settings.USE_TLS == 'true' %}Yes{% else %}No{% endif %}
SSL: {% if email_settings.USE_SSL == 'true' %}Yes{% else %}No{% endif %}
{% else %}

No email configuration found

{% endif %}
M-Pesa Configuration
{% if mpesa_settings.CONSUMER_KEY %}Configured{% else %}Not Configured{% endif %}
{% if mpesa_settings %}
Environment: {{ mpesa_settings.ENVIRONMENT|default:"sandbox" }}
Short Code: {{ mpesa_settings.BUSINESS_SHORT_CODE|default:"Not set" }}
Consumer Key: {% if mpesa_settings.CONSUMER_KEY %}••••••••{% else %}Not set{% endif %}
{% else %}

No M-Pesa configuration found

{% endif %}
SMS Configuration
{% if sms_settings.API_KEY %}Configured{% else %}Not Configured{% endif %}
{% if sms_settings %}
API URL: {{ sms_settings.API_URL|default:"Not set" }}
Sender ID: {{ sms_settings.SENDER_ID|default:"Not set" }}
API Key: {% if sms_settings.API_KEY %}••••••••{% else %}Not set{% endif %}
{% else %}

No SMS configuration found

{% endif %}
{% if email_stats %}
Email Statistics
Total Sent: {{ email_stats.total_sent }}
Failed: {{ email_stats.total_failed }}
Pending: {{ email_stats.total_pending }}
Today: {{ email_stats.today_sent }}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}