@php $plan = $progress['plan']; @endphp
Rewards

Rolling Reward Challenge

Your progress updates automatically based on confirmed enquiries in the last X days.
@if(!$plan)
No active reward plan
Admin has not activated a challenge yet.
@else
Challenge
{{ $plan->challenge_name }}
Window: {{ $plan->days_window }} days
Reward
{{ \App\Support\Currency::inr($plan->reward_amount, 0) }}
Type: {{ strtoupper($plan->reward_type) }} @if($plan->reward_type === 'coupon' && $plan->reward_code) ยท Code: {{ $plan->reward_code }} @endif
Progress
{{ \App\Support\Currency::inr($progress['achieved'], 0) }} / {{ \App\Support\Currency::inr($progress['target'], 0) }}
Days Remaining
{{ $progress['days_remaining'] }}
{{ number_format($progress['progress_percent'], 0) }}% complete
Remaining: {{ \App\Support\Currency::inr($progress['remaining_amount'], 0) }}
$progress['unlocked'], 'bg-white/5' => ! $progress['unlocked'], ])> @if($progress['unlocked'])
Congratulations! Reward unlocked.
You've achieved the target within the rolling window.
@else
You need {{ \App\Support\Currency::inr($progress['remaining_amount'], 0) }} more
in confirmed enquiries within next {{ $progress['days_remaining'] }} days to unlock reward.
@endif
@endif
How it works

Only confirmed enquiries are counted.

Totals are calculated using enquiries from today back to the last X days.

As older enquiries expire out of the window, your progress can increase or decrease automatically.

Tip
Add more confirmed enquiries before your oldest record expires to keep momentum.