{% extends 'base_customer.html' %} {% block title %}My Account - Optinet Global Links{% endblock %} {% block content %}

My Account

{% if customer %}
Service Status
{{ service_status.status|title }}
{% if service_status.status == 'active' %}
{{ customer.service.name }}
{{ customer.service.speed_mbps }}Mbps - KES {{ customer.service.price }}
Active
Expires: {{ service_status.expires_at|date:"M d, Y H:i" }}
{% if service_status.days_remaining <= 7 %}
Your service expires in {{ service_status.days_remaining }} day{{ service_status.days_remaining|pluralize }}. {% if customer.can_auto_renew %} Auto-renewal is enabled. {% else %} Please top up your account for auto-renewal. {% endif %}
{% endif %} {% else %}
Service {{ service_status.status|title }}

{{ service_status.message }}

{% endif %}
Recent Invoices
View All
{% if recent_invoices %}
{% for invoice in recent_invoices %} {% endfor %}
Invoice # Amount Status Due Date
{{ invoice.invoice_number }} KES {{ invoice.total_amount }} {{ invoice.get_status_display }} {{ invoice.due_date }}
{% else %}

No invoices found.

{% endif %}
My Support Tickets
New Ticket
{% if my_tickets %} {% for ticket in my_tickets %}
{{ ticket.title|truncatechars:30 }}
{{ ticket.created_at|timesince }} ago
{{ ticket.get_priority_display }}
{{ ticket.get_status_display }}
{% endfor %} {% else %}

No support tickets.

{% endif %}
Account Balance

KES {{ customer.account_balance }}

{% if customer.outstanding_amount > 0 %} Outstanding: KES {{ customer.outstanding_amount }} {% else %} No outstanding invoices {% endif %}
Account Information
Customer ID:
{{ customer.customer_id }}
Phone:
{{ customer.phone }}
Email:
{{ customer.email }}
Service:
{% if customer.service %} {{ customer.service.name }} - {{ customer.service.speed_mbps }}Mbps {% else %} No active service {% endif %}
Quick Actions
{% else %}

Account Setup Required

Your customer profile is not set up yet. Please contact support to complete your account setup.

Contact Support
{% endif %} {% endblock %}