{% extends "common/base.html" %} {% from "components/header.html" import header %} {% block title %}Customers - Admin{% endblock %} {% block content %} {{ header( title="Customers", description="Manage customer information and subscriptions", icon="fa-users" ) }}
{% if customers.items %}
{% for customer in customers.items %} {% endfor %}
Name Email Phone Plan Status Billing Cycle Created Actions
{{ customer.name[0] if customer.name else customer.email[0] }}
{{ customer.name or 'N/A' }}
{{ customer.email }} {{ customer.phone or 'N/A' }} {% if customer.subscription_plan_id %} {% set plan = customer.plan %} {% if plan %} {{ plan.name }} {% else %} Plan {{ customer.subscription_plan_id }} {% endif %} {% else %} No plan {% endif %} {% if customer.subscription_status %} {% if customer.subscription_status == 'active' %} Active {% elif customer.subscription_status == 'canceled' %} Canceled {% elif customer.subscription_status == 'past_due' %} Past Due {% else %} {{ customer.subscription_status }} {% endif %} {% else %} No subscription {% endif %} {% if customer.subscription_billing_cycle %} {{ customer.subscription_billing_cycle.title() }} {% else %} N/A {% endif %} {{ customer.created_at.strftime('%Y-%m-%d') if customer.created_at else 'N/A' }}
{% if customers.pages > 1 %} {% endif %}
{% else %}
No customers found

Customers will appear here once they complete a purchase.

{% endif %}
{% endblock %}