{% extends "admin_base.html" %} {% load static %} {% block title %}{{ tenant.name }} - Tenant Details{% endblock %} {% block page_title %}{{ tenant.name }}{% endblock %} {% block page_description %}Detailed information about this tenant organization{% endblock %} {% block content %}

{{ tenant.get_status_display }}

Current Status

{{ tenant.days_remaining }}

Days Remaining

{{ tenant_users.count }}

Total Users

{{ shops.count }}

Active Shops

Basic Information

{{ tenant.name }}

{{ tenant.tenant_code }}

{{ tenant.get_plan_display }}

{{ tenant.owner.get_full_name|default:tenant.owner.username }}
{{ tenant.owner.email }}

{{ tenant.contact_phone|default:"Not provided" }}

{{ tenant.created_at|date:"M d, Y H:i" }}

{% if tenant.trial_ends_at %} {{ tenant.trial_ends_at|date:"M d, Y H:i" }} {% else %} Not set {% endif %}

{% if tenant.address %}

{{ tenant.address }}

{% endif %}
Users ({{ tenant_users.count }})
Add User
{% if tenant_users %}
{% for tenant_user in tenant_users %} {% endfor %}
User Role Status Joined Actions
{{ tenant_user.user.first_name.0|default:tenant_user.user.username.0|upper }}
{{ tenant_user.user.get_full_name|default:tenant_user.user.username }}
{{ tenant_user.user.email }}
{{ tenant_user.get_role_display }} {% if tenant_user.is_active %}Active{% else %}Inactive{% endif %} {{ tenant_user.joined_at|date:"M d, Y" }}
{% else %}
No users found

This tenant has no assigned users.

{% endif %}
Shops ({{ shops.count }})
{% if shops %}
{% for shop in shops %} {% endfor %}
Shop Name Address Phone Email
{{ shop.name }} {{ shop.address|default:"Not provided" }} {{ shop.phone|default:"Not provided" }} {{ shop.email|default:"Not provided" }}
{% else %}
No shops configured

This tenant has no shops set up yet.

{% endif %}
Limits & Usage
Users {{ tenant_users.count }} / {{ tenant.max_users }}
Shops {{ shops.count }} / {{ tenant.max_shops }}
Quick Stats
{{ tenant.get_plan_price|floatformat:0 }}
KES/month
{{ tenant.created_at|timesince }}
Old
Recent Activity
Tenant Created

Organization was registered

{{ tenant.created_at|timesince }} ago
{% if tenant.trial_ends_at %}
Trial Period

14-day trial started

Expires {{ tenant.trial_ends_at|timeuntil }}
{% endif %}
{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% endblock %}