@extends('layouts.admin') @section('title', 'Edit Event') @section('page-title', 'Edit Event') @section('content') @php // Check if event has participants (lock critical fields if yes) $hasParticipants = \App\Models\EventParticipant::where('event_id', $event->id)->exists(); $participantCount = \App\Models\EventParticipant::where('event_id', $event->id)->count(); @endphp
Edit Event ( Kindly fill all required fields.)
@csrf
1
Event Details & Config
2
Categories
3
Fee Configuration
@if($has_participants)
Warning: This event has {{ $participants_count }} registered participant(s). Categories and fee configuration are locked to preserve data integrity.
@endif
@if($event->coverImage) Event Image @else No image @endif
*
Max file size: 300KB (JPG, PNG)
@php $allowedStateIds = $event->states()->pluck('state_id')->toArray(); $lockedStateIds = $event->getLockedStateIds(); @endphp {{-- DEBUG: Allowed State IDs from backend: {{ json_encode($allowedStateIds) }} --}}
{{-- 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 🚫 No Admin
participant_slot_limit) style="display: none;" @endif> @if($hasParticipants)
Cannot modify: Slot limit locked after participants registered. {{ $participantCount }} participant(s)
@else Official: 1 (standard) or 4 (Fed Cup style)
Open: Unlimited (leave empty)
@endif
Batch Code Generation
For Poomsae categories
requires_batch_codes ?? 0) ? 'checked' : '' }} style="width: 3em; height: 1.5em;">

Automatically generates unique batch codes (e.g., IND-1, PAIR-1, TEAM-1) for Poomsae registrations.

Cancel
@include('admin.events.partials.modals') @endsection @push('styles') @endpush @push('scripts') @endpush