{# Read-only info #}
Status
{% if tenant.subscription_status == 'active' %}
active
{% elif tenant.subscription_status == 'trial' %}
trial
{% elif tenant.subscription_status == 'past_due' %}
past_due
{% elif tenant.subscription_status == 'cancelled' %}
cancelled
{% else %}
—
{% endif %}
{% if tenant.trial_ends_at %}
Trial ends
{{ tenant.trial_ends_at.strftime('%Y-%m-%d') }}
{% endif %}
{% if tenant.current_period_end %}
Period ends
{{ tenant.current_period_end.strftime('%Y-%m-%d') }}
{% endif %}
{% if tenant.billing_email %}
Billing email
{{ tenant.billing_email }}
{% endif %}
{% if tenant.stripe_customer_id %}
Stripe customer
{{ tenant.stripe_customer_id }}
{% endif %}
{% if tenant.stripe_subscription_id %}
Stripe subscription
{{ tenant.stripe_subscription_id }}
{% endif %}
{# Set trial #}
{# Override status #}
{# Apply coupon — only if Stripe customer exists #}
{% if tenant.stripe_customer_id %}
{% endif %}