{% extends "base.html" %} {% block content %}
YOUR ZALEAHUB ACCOUNT

Hello, {{ current_user.name.split(' ')[0] }}.

Your coffee journey, all in one place.

PAID COFFEES COLLECTED
{{ progress }} / 10
{% if pending_count %}

{{ pending_count }} milestone{{ 's' if pending_count != 1 else '' }} waiting for administrator validation. You can keep collecting coffees.

{% else %}

{{ 10 - progress }} more coffees until your next reward milestone.

{% endif %}
10 paid coffees = 2 free coffees

Two free cups are available after administrator approval. Staff will update your account after handing them to you.

My free coffee rewards

{% for reward in rewards %}
Two free cups · Reward {{ reward.cycle_number }} {{ reward.status|title }}
{% if reward.status == 'pending' %}

Earned after {{ reward.qualifying_total }} paid coffees. Waiting for administrator validation.

{% elif reward.status == 'approved' %}

Your two free cups are approved. Please visit the shop and show this reward to staff. It will be marked claimed after both cups are handed over.

{% elif reward.status == 'claimed' %}

Your two free cups were claimed on {{ reward.claimed_at.strftime('%b %d, %Y %I:%M %p UTC') if reward.claimed_at else 'a recorded date' }}.

{% endif %}
{% else %}

No rewards yet. Every 10 successful paid-coffee QR redemptions earns two free cups.

{% endfor %}

Recent activity {{ total }} paid coffees total

{% for item in history %}
☕ Coffee scanned · {{ item.redeemed_at.strftime('%b %d, %Y %I:%M %p') }}+1
{% else %}

Your first coffee is waiting. Scan the QR code printed on your cup to get started.

{% endfor %}
{% endblock %}