<div class="row">
    <x-forms col="6" label="{{ __('dashboard.name_en') }}" name="name[en]" :value="$game?->getTranslation('name', 'en') ?? ''" required />
    <x-forms col="6" label="{{ __('dashboard.name_ar') }}" name="name[ar]" :value="$game?->getTranslation('name', 'ar') ?? ''" />
</div>

<div class="row">
    <div class="col-md-6">
        <label class="form-label">{{ __('dashboard.description_en') }}</label>
        <textarea name="description[en]" class="form-control" rows="3">{{ $game?->getTranslation('description', 'en') ?? '' }}</textarea>
    </div>
    <div class="col-md-6">
        <label class="form-label">{{ __('dashboard.description_ar') }}</label>
        <textarea name="description[ar]" class="form-control" rows="3">{{ $game?->getTranslation('description', 'ar') ?? '' }}</textarea>
    </div>
</div>

<div class="row">
    <x-forms col="6" label="{{ __('dashboard.price_per_session') }}" name="price_per_session" type="number" step="0.01" :value="$game->price_per_session ?? ''" />
</div>

<div class="row">
    <x-forms col="3" label="{{ __('dashboard.min_players') }}" name="min_players" type="number" :value="$game->min_players ?? 1" required />
    <x-forms col="3" label="{{ __('dashboard.max_players') }}" name="max_players" type="number" :value="$game->max_players ?? 1" required />
    <x-forms col="3" label="{{ __('dashboard.duration') }}" name="duration" type="number" :value="$game->duration ?? 60" required />
    <div class="col-md-3">
        <label class="form-label">{{ __('dashboard.status') }}</label>
        <select name="status" class="form-select" required>
            @foreach(\App\Enums\GameStatusEnum::options() as $opt)
                <option value="{{ $opt['value'] }}" {{ ($game->status ?? \App\Enums\GameStatusEnum::ACTIVE->value) == $opt['value'] ? 'selected' : '' }}>{{ $opt['label'] }}</option>
            @endforeach
        </select>
    </div>
</div>

<div class="row">
    <x-forms col="4" label="{{ __('dashboard.age_limit_min') }}" name="age_limit_min" type="number" :value="$game->age_limit_min ?? ''" />
    <x-forms col="4" label="{{ __('dashboard.age_limit_max') }}" name="age_limit_max" type="number" :value="$game->age_limit_max ?? ''" />
    <x-forms col="4" label="{{ __('dashboard.main_confirmation_number') }}" name="main_confirmation_number" type="number" :value="$game->main_confirmation_number ?? ''" />

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

    </div>
</div>
