@php $pill = ['approved' => 'bg-emerald-100 text-emerald-700', 'pending' => 'bg-amber-100 text-amber-700', 'rejected' => 'bg-red-100 text-red-700']; @endphp
@csrf
@if($results !== null)
@forelse($results as $r)
{{ $r->event->title }}

{{ $r->event->starts_at->format('D, d M Y · h:i A') }} · {{ $r->event->location }}

{{ ['approved' => 'Confirmed', 'pending' => 'Payment under review', 'rejected' => 'Not approved'][$r->status] ?? $r->status }}

@if($r->status === 'approved') Your seat is confirmed. See you there! @elseif($r->status === 'pending') We are verifying your payment of {{ number_format($r->amount) }} BDT. This page and your email will update once it is confirmed. @else We could not approve this registration. Please contact the club committee. @endif

@empty
No registration found for this email and phone number. Check the details and try again.
@endforelse
@endif