@extends('layouts.membership') @section('title', 'My Rewards - The LaLiT Loyalty') @section('content')

YOU HAVE {{ number_format($userPoints) }} LALIT LOYALTY POINTS

@if(count($availableRewards) > 0) @foreach($availableRewards as $reward)
@if($reward['image']) {{ $reward['title'] }} @else
@endif
{{ $reward['title'] }}

{{ $reward['description'] }}

{{ number_format($reward['points_required']) }} Points
@if($reward['expiry_date']) Expires: {{ \Carbon\Carbon::parse($reward['expiry_date'])->format('M j, Y') }} @endif
{{ ucfirst($reward['location']) }} {{ ucfirst($reward['category']) }}
@if($userPoints >= $reward['points_required']) @else @endif
@endforeach @else

No Rewards Available

Check back soon for exciting new rewards!

@endif
{{ number_format($userPoints) }}
Available Points
{{ count($earnedRewards) }}
Earned Rewards
{{ $availableRewards->count() }}
Available Rewards
{{ $availableRewards->where('popular', true)->count() }}
Popular Rewards
@push('scripts') @endpush @endsection