{% extends "base.html" %} {% block title %}{{ customer.name }} · Customer profile · ZaleaHub{% endblock %} {% block content %}
← Back to customers

CUSTOMER ACCOUNT / #{{ customer.id }}

{{ customer.name or 'Customer' }}

{{ customer.email }}

{% if customer.account_status == 'active' %}Active {% elif customer.account_status == 'pending' %}Pending activation {% elif customer.account_status == 'suspended' %}Suspended {% else %}Deleted{% endif %}
Total coffees{{ total }}Successful QR redemptions
Current card progress{{ progress }} / 10{% if progress == 0 and total > 0 %}Card completed{% else %}Coffees toward next reward{% endif %}
Milestones earned{{ milestones|length }}Every 10 successful coffees

Account information

Registration and account verification details

Full name
{{ customer.name or '—' }}
Email address
{{ customer.email }}
Registered
{{ customer.created_at.strftime('%d %b %Y, %H:%M UTC') if customer.created_at else '—' }}
Email verification
{{ 'Verified' if customer.is_email_verified else 'Not verified' }}
Account status
{{ customer.account_status|title }}
{% if customer.suspended_at %}
Suspended
{{ customer.suspended_at.strftime('%d %b %Y, %H:%M UTC') }}{% if customer.suspension_reason %} · {{ customer.suspension_reason }}{% endif %}
{% endif %} {% if customer.deleted_at %}
Deleted
{{ customer.deleted_at.strftime('%d %b %Y, %H:%M UTC') }}
{% endif %}

Loyalty milestones

Reward status for each completed 10-coffee cycle

{{ milestones|length }} total
{% for item in milestones %}
✦
Cycle {{ item.milestone.cycle_number }} · {{ item.milestone.qualifying_total }} coffees Earned {{ item.milestone.created_at.strftime('%d %b %Y, %H:%M UTC') if item.milestone.created_at else '—' }} {% if item.milestone.approved_at %}Approved {{ item.milestone.approved_at.strftime('%d %b %Y, %H:%M UTC') }}{% if item.approver %} by {{ item.approver.name }}{% endif %}{% endif %} {% if item.milestone.claimed_at %}Two free cups handed over {{ item.milestone.claimed_at.strftime('%d %b %Y, %H:%M UTC') }}{% if item.claimant %} by {{ item.claimant.name }}{% endif %}{% endif %}
{{ item.milestone.status|title }}
{% else %}
No milestones yet

A reward milestone is created automatically after every 10 successful coffee redemptions.

{% endfor %}

Recent coffee activity

Most recent successful QR redemptions

Latest 30
{% for redemption in redemptions %}
☕
Coffee redeemed{{ redemption.redeemed_at.strftime('%d %b %Y, %H:%M UTC') if redemption.redeemed_at else '—' }}
+1 stamp
{% else %}
No coffee activity yet

Successful QR scans will appear here.

{% endfor %}
{% if total > redemptions|length %}

Showing the latest {{ redemptions|length }} of {{ total }} redemptions.

{% endif %}
{% endblock %}