@if($event->coverImage)

@else
No image
@endif
@php
$allowedStateIds = $event->states()->pluck('state_id')->toArray();
// $lockedStateIds is now passed from controller
@endphp
{{-- DEBUG: Allowed State IDs from backend: {{ json_encode($allowedStateIds) }} --}}
{{-- DEBUG: Locked State IDs from backend: {{ json_encode($lockedStateIds) }} --}}
{{-- Store pre-selected state IDs in a data attribute BEFORE Choices.js initialization --}}
Type to search and select multiple states.
@if(count($lockedStateIds) > 0)
States with participants (๐) cannot be removed.
@endif
Legend:
โ
Active Admin
๐ง Invitation Sent
โฐ Link Expired
โ ๏ธ Profile Incomplete
๐ซ No Admin
participant_slot_limit) style="display: none;" @endif>
@if(!$hasParticipants)
Official: 1 (standard) or 4 (Fed Cup style)
Open: Unlimited (leave empty)
@endif
@php
// Check if any officials are registered for this event
// Note: This will be implemented in Phase 4, for now defaulting to 0
$registeredOfficialsCount = 0; // TODO: EventOfficial::where('event_id', $event->id)->whereIn('status', ['pending', 'confirmed'])->count();
@endphp
@if($registeredOfficialsCount > 0)
Cannot reduce below {{ $registeredOfficialsCount }} (currently registered officials)
@else
Minimum 1 official required. Can be adjusted anytime.
@endif
Automatically generates unique batch codes (e.g., IND-1, PAIR-1, TEAM-1) for Poomsae registrations.