{% extends 'dashboard/base.html' %} {% load humanize %} {% block title %}{{ customer.get_full_name|default:customer.username }}{% endblock %} {% block page_title %}Customer Detail{% endblock %} {% block content %}
{{ customer.first_name|first|upper|default:customer.username|first|upper }}
{{ customer.get_full_name|default:customer.username }}
@{{ customer.username }}
{{ customer.email }}
{{ orders.count }}
Orders
₦{{ orders.aggregate_total|default:0|intcomma }}
Spent
{% if customer.total_spent %}₦{{ customer.total_spent|floatformat:0|intcomma }}{% else %}—{% endif %}
Account Info
Joined {{ customer.date_joined|date:"M d, Y" }}
Last Login {{ customer.last_login|date:"M d, Y"|default:"Never" }}
Staff {% if customer.is_staff %}Yes{% else %}No{% endif %}
Active {% if customer.is_active %}Yes{% else %}No{% endif %}
{% if customer.profile.phone %}
Phone {{ customer.profile.phone }}
{% endif %} {% if customer.profile.city %}
Location {{ customer.profile.city }}, {{ customer.profile.state }}
{% endif %}
Order History ({{ orders.count }})
{% for order in orders %} {% empty %} {% endfor %}
Order #DateItemsTotalPaymentStatus
#{{ order.order_number }} {{ order.created_at|date:"M d, Y" }} {{ order.items.count }} ₦{{ order.total|floatformat:0|intcomma }} {% if order.is_paid %}Paid{% else %}Unpaid{% endif %} {{ order.get_status_display }} View
No orders yet.
{% endblock %}