{% extends "base.html" %}{% load i18n %} {% block title %}{% translate "Intelligence billing -" %} {{ organization.name }} - Inkelligent{% endblock %} {% block page_header %}

{% translate "Billing" %}

{% translate "Intelligence subscription for" %} {{ organization.name }}.

{% translate "Back to Intelligence" %}
{% endblock %} {% block content %}
{# ---- Subscription overview ---- #} {% if subscription %}

{% translate "Subscription" %}

{% translate "Plan" %}
{{ subscription.plan_slug|default:"," }}
{% translate "Status" %}
{% comment %} Stripe keeps status='active' until the period actually ends. When ``cancel_at`` is set, the user has clicked "Cancel" in the portal and is in the grace period, show an amber pill so it's visually distinct from a healthy "Active". (Must use {% comment %} not {# #} because the latter is single-line in Django.) {% endcomment %} {% if cancel_at and subscription.status == 'active' %} {% translate "Active ยท canceling" %} {% else %} {% translate subscription.get_status_display %} {% endif %}
{% if cancel_at %}
{% translate "Access ends" %}
{{ cancel_at|date:"F j, Y" }}
{% translate "You'll keep full Intelligence access until then, after which the subscription will be canceled and tool calls will stop." %}
{% elif subscription.current_period_end %}
{% translate "Current period ends" %}
{{ subscription.current_period_end|date:"F j, Y" }}
{% endif %}
{# ---- Manage in Stripe ---- #}
{% csrf_token %}

{% translate "Update your card, view past invoices, or cancel through Stripe's secure customer portal." %}

{# Divider between subscription section and contact section. #}
{% endif %} {# ---- Billing contact email ---- #}

{% translate "Billing contact" %}

{% translate "Stripe invoices and failed-payment notices route to this email. Changing it also updates the Stripe Customer's contact email." %}

{% csrf_token %}
{% endblock %} {% block extra_head %} {% include "intelligence/_cta_styles.html" %} {% endblock %}