Your rewards

Available balance {{ number_format($loyalty['balance']) }} points {{ $loyalty['tier']['name'] }} · points expire {{ setting('points.expiry_months', 12) ?: 'never' }}{{ setting('points.expiry_months', 12) ? ' months after you earn them' : '' }}
@if ($loyalty['balance'] < 0)

Your balance is below zero because points from a refunded order were taken back. New orders will bring it up again.

@endif @if ($codes->isNotEmpty())

Your codes

@foreach ($codes as $r)
{{ $r->reward->name }}
{{ $r->coupon?->code }}
Enter it at checkout · expires {{ $r->expires_at?->format('j M Y') }}
@endforeach
@endif

Redeem

@if ($rewards->isEmpty())

No rewards available right now. Keep earning — new ones drop regularly.

@else
@foreach ($rewards as ['reward' => $reward, 'blocked' => $blocked]) @php $hero = $reward->points_cost >= 5000; @endphp
$hero, 'bg-white border-line' => ! $hero])>
{{ $reward->type->label() }} {{ $reward->name }} @if ($reward->description){{ $reward->description }}@endif
$hero, 'border-line' => ! $hero])>
{{ number_format($reward->points_cost) }} points@if ($blocked){{ $blocked }}@endif
@if (! $blocked && $loyalty['balance'] < $reward->points_cost * 4) @endif
@endforeach
@endif

Points history

@foreach (['all' => 'All', 'earned' => 'Earned', 'spent' => 'Spent'] as $k => $l)@endforeach
@forelse ($history ?? [] as $t)
{{ $t->label() }}{{ $t->created_at->format('j M Y') }} $t->points > 0, 'text-bad' => $t->points < 0])>{{ $t->points > 0 ? '+' : '−' }}{{ number_format(abs($t->points)) }}
@empty

No points yet. Your first order earns you some.

@endforelse
@if ($history){{ $history->links() }}@endif
@if ($redeemed) @endif