Rewards

What customers can spend points on. Each redemption issues a personal single-use code.
Earning rules
@foreach (['catalogue' => 'Catalogue', 'redemptions' => 'Redemptions'] as $k => $l)@endforeach
@if ($tab === 'catalogue')
RewardPointsTypeValueAvailabilityClaimedStatus @forelse ($rewards as $r) {{ $r->name }} {{ number_format($r->points_cost) }} {{ $r->type->label() }} {{ $r->valueLabel() }} {{ $r->min_tier ? ucfirst($r->min_tier).'+' : 'All members' }}{{ $r->stock !== null ? ' · '.$r->stock.' left' : '' }}{{ $r->ends_at ? ' · until '.$r->ends_at->format('j M') : '' }} {{ $r->claimed_count }} {{ $r->isLive() ? 'Live' : ($r->is_active ? 'Not live' : 'Off') }} @empty No rewards yet. @endforelse
{{ $editingId ? 'Edit reward' : 'New reward' }}
@if (in_array($form['type'], ['fixed_discount', 'percent_discount', 'campaign', 'special_product'])) @endif @if (in_array($form['type'], ['free_product', 'special_product'])) @endif
@if ($editingId)@endif
@else
WhenCustomerRewardPointsCodeStatusExpires @forelse ($redemptions as $r) {{ $r->created_at->format('j M, H:i') }}{{ $r->user?->name }}{{ $r->reward?->name }}{{ number_format($r->points_spent) }}{{ $r->coupon?->code }} {{ ucfirst($r->status) }}{{ $r->expires_at?->format('j M Y') }} @empty No redemptions yet. @endforelse
@endif