{% extends "base.html" %} {% block title %}My Coffee Rewards · ZaleaHub{% endblock %} {% block content %} {% set card_progress = 10 if progress == 0 and total > 0 and pending_count else progress %}
YOUR ZALEAHUB MEMBERSHIP

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

Every cup brings you closer to something good.

YOUR LOYALTY CARD

A little progress. A lovely reward.

Collect 10 paid coffees and enjoy 2 cups on us.

{{ card_progress }}/ 10
{{ card_progress }} of 10 cups collected {{ 10 - card_progress }} to go
{% if pending_count %}
{{ pending_count }} reward milestone{{ 's' if pending_count != 1 else '' }} awaiting reviewYour progress is saved. You can keep collecting coffees while our team validates your reward.
{% else %}
{% if card_progress == 0 and total > 0 %}Your next card is ready{% elif card_progress == 0 %}Your first stamp is waiting{% elif card_progress == 10 %}You've completed this card{% else %}You're making great progress{% endif %}{% if card_progress == 0 %}Scan a coffee QR code to start collecting stamps.{% elif card_progress == 10 %}Your reward is being reviewed. You can keep collecting for your next card.{% else %}Keep going. Your next reward is getting closer.{% endif %}
{% endif %}
READY FOR YOUR NEXT STAMP?

Scan your coffee QR code

Enjoyed a cup? Scan the QR code provided by the shop to add it to your loyalty card.

Your camera starts only when you tap the button. Scanning happens on this device.

SOMETHING TO LOOK FORWARD TO

My free coffee rewards

{{ rewards|length }} earned
{% if rewards %}
{% for reward in rewards %}
2 free cups · Reward {{ reward.cycle_number }} {% if reward.status == 'pending' %}

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

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

Your 2 free cups are ready. Show this screen to the cashier when you order; our team will record the redemption after handing over both cups.

READY TO REDEEM IN STORE {% elif reward.status == 'claimed' %}

Both free cups were claimed{% if reward.claimed_at %} on {{ reward.claimed_at.strftime('%b %d, %Y') }}{% endif %}. Enjoy!

{% else %}

Reward status: {{ reward.status|title }}.

{% endif %}
{{ reward.status|title }}
{% endfor %}
{% else %}
Your first reward is waiting

Every 10 successful paid-coffee scans earns you 2 free cups.

{% endif %}
YOUR RECENT VISITS

Coffee activity

{{ total }} total cups
{% for item in history %}
Coffee collected{{ item.redeemed_at.strftime('%b %d, %Y · %I:%M %p') }}+1
{% else %}
Your coffee journey starts here.

Scan the QR code from your first cup to collect your first stamp.

{% endfor %}
{% if total > history|length %}View all activity {% endif %}
STAY IN THE LOOP

Reward updates

{{ rewards|length }} updates
{% if rewards %}
{% for reward in rewards[:4] %}
{% if reward.status == "pending" %}Reward earned — validation in progress{% elif reward.status == "approved" %}Your free cups are ready{% elif reward.status == "claimed" %}Reward redeemed — enjoy!{% else %}Reward status updated{% endif %}

Reward {{ reward.cycle_number }} · {{ reward.qualifying_total }} paid coffees{% if reward.approved_at and reward.status != "pending" %} · Updated {{ reward.approved_at.strftime("%b %d, %Y") }}{% elif reward.created_at %} · Earned {{ reward.created_at.strftime("%b %d, %Y") }}{% endif %}

{{ reward.status|title }}
{% endfor %}
{% else %}
No reward updates yet

When you complete a 10-coffee card, your reward progress and approval updates will appear here.

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}