@extends('unit-admin.layout') @section('title', 'Event Registrations') @section('page_title', 'Event Registrations') @section('content') {{-- BACK LINK --}}
Back to Events
{{-- EVENT INFO CARD --}}
@if($event->image) @else
@endif
{{ $event->title }}
@if($event->status === 'UPCOMING') UPCOMING @elseif($event->status === 'ONGOING') ONGOING @elseif($event->status === 'COMPLETED') COMPLETED @elseif($event->status === 'CANCELLED') CANCELLED @endif @if($event->ticket_type === 'FREE') Free @else ₹{{ number_format($event->ticket_price) }} @endif
{{ \Carbon\Carbon::parse($event->event_date)->format('d M Y') }} {{ \Carbon\Carbon::parse($event->event_time)->format('g:i A') }} @if($event->is_online) Online @else {{ $event->location }} @endif {{ $event->total_seats == 0 ? 'Unlimited' : $event->total_seats . ' seats' }}
{{-- Registrations count badge --}}
{{ $registrations->count() }}
Registrations
{{-- REGISTRATIONS TABLE --}}
Registrations from Your Unit
@if($registrations->isEmpty())

No registrations from your unit for this event

@else
@foreach($registrations as $i => $reg) @endforeach
# Member Phone Unit District Registered On Payment
{{ $i + 1 }}
{{ strtoupper(substr($reg->user->name ?? '?', 0, 1)) }}
{{ $reg->user->name ?? '—' }}
{{ $reg->user->email ?? '—' }}
{{ $reg->user->phone ?? '—' }} {{ $reg->memberProfile?->unit?->name ?? '—' }} {{ $reg->memberProfile?->district?->name ?? '—' }} {{ $reg->created_at->format('d M Y') }} @if($event->ticket_type === 'FREE') Free @else @if(isset($reg->payment_status) && $reg->payment_status === 'PAID') PAID @else PENDING @endif @endif
@endif
@endsection