{% extends "base.html" %} {% block title %}Plan & Usage — Settings{% endblock %} {% block content %}

Plan & Usage

Branding Plan & Usage Domains
{% if plan_info %}
Current Plan
{{ plan_info.name }} {{ plan_info.code }}
Mobile API (iPad) {% if plan_info.allow_mobile_api %}{% else %}{% endif %}
Scheduled Reports {% if plan_info.allow_scheduled_reports %}{% else %}{% endif %}
Branding / White-label {% if plan_info.allow_branding %}{% else %}{% endif %}
Custom Domain {% if plan_info.allow_custom_domain %}{% else %}{% endif %}
{% if billing_enabled %} {# MT-8: live subscription status badge #} {% if subscription_status == 'trial' %} Free trial{% if trial_ends_at %} — expires {{ trial_ends_at.strftime('%b %d, %Y') }}{% endif %} {% elif subscription_status == 'active' %} Active subscription {% elif subscription_status == 'past_due' %} Payment past due {% elif subscription_status == 'cancelled' %} Subscription cancelled {% endif %} {# Action button #} {% if subscription_status in ('active', 'past_due') %} Manage Billing {% else %} Subscribe Now {% endif %} {% else %} Request Plan Upgrade {% endif %}
Usage This Month
{% set axes = [ ('inspections', 'Inspections / month', plan_info.max_inspections_month), ('issues', 'Issues / month', plan_info.max_issues_month), ('users', 'Active Users (total)', plan_info.max_users), ('facilities', 'Active Facilities (total)', plan_info.max_facilities), ] %} {% for key, label, limit in axes %} {% set current = quota_usage.get(key, 0) %} {% set pct = ((current / limit * 100) | int) if limit else 0 %} {% set over = limit and current >= limit %}
{{ label }} {{ current }}{% if limit %} / {{ limit }}{% else %} / unlimited{% endif %}
{% if limit %}
{% endif %}
{% endfor %}
{% else %}
Plan information is only available when multi-tenancy is enabled.
{% endif %} {% endblock %}