<div class="row">
    <x-forms col="6" label="{{ __('Name (EN)') }}" name="name[en]" :value="$championship?->getTranslation('name', 'en') ?? ''" required />
    <x-forms col="6" label="{{ __('Name (AR)') }}" name="name[ar]" :value="$championship?->getTranslation('name', 'ar') ?? ''" />
</div>

<div class="row">
    <div class="col-md-6">
        <label class="form-label">{{ __('Game') }}</label>
        <select name="game_id" class="form-select" required>
            <option value="">{{ __('Select Game') }}</option>
            @foreach($games as $game)
                <option value="{{ $game->id }}" {{ ($championship?->game_id ?? '') == $game->id ? 'selected' : '' }}>{{ $game->name }}</option>
            @endforeach
        </select>
    </div>
    <x-forms col="6" label="{{ __('Price') }}" name="price" type="number" step="0.01" :value="$championship->price ?? 0" required />
</div>

<div class="row">
    <x-forms col="6" label="{{ __('Players per Team') }}" name="players_count" type="number" :value="$championship->players_count ?? 1" required />
    <div class="col-md-6">
        <label class="form-label">{{ __('dashboard.status') }}</label>
        <select name="status" class="form-select" required>
            @foreach(\App\Enums\ChampionshipStatusEnum::options() as $opt)
                <option value="{{ $opt['value'] }}" {{ ($championship?->status ?? \App\Enums\ChampionshipStatusEnum::UPCOMING->value) == $opt['value'] ? 'selected' : '' }}>{{ $opt['label'] }}</option>
            @endforeach
        </select>
    </div>
</div>

<div class="row">
    <div class="col-md-6">
        <x-image label="{{ __('Image') }}" name="image" :value="$championship?->image ?? null" />
    </div>
</div>
