Subscription
{% 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[:20] }}…
{% endif %}
{% if tenant.stripe_subscription_id %}
Stripe subscription
{{ tenant.stripe_subscription_id[:20] }}…
{% endif %}
{% if not tenant.subscription_status %}
No billing configured.
{% endif %}