<div class="row">
    <div class="col-md-6">
        <label class="form-label"><?php echo e(__('dashboard.game')); ?> <span class="text-danger">*</span></label>
        <select name="game_id" class="form-select" required>
            <option value=""><?php echo e(__('dashboard.select')); ?></option>
            <?php $__currentLoopData = $games ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $g): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($g->id); ?>" <?php echo e(($academy?->game_id == $g->id) ? 'selected' : ''); ?>><?php echo e($g->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>

<div class="row">
    <?php if (isset($component)) { $__componentOriginala468651e880368559e1ab93ce3b644a9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala468651e880368559e1ab93ce3b644a9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms','data' => ['col' => '6','label' => ''.e(__('dashboard.name_en')).'','name' => 'name[en]','value' => $academy?->getTranslation('name', 'en') ?? '','required' => true]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('forms'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['col' => '6','label' => ''.e(__('dashboard.name_en')).'','name' => 'name[en]','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($academy?->getTranslation('name', 'en') ?? ''),'required' => true]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala468651e880368559e1ab93ce3b644a9)): ?>
<?php $attributes = $__attributesOriginala468651e880368559e1ab93ce3b644a9; ?>
<?php unset($__attributesOriginala468651e880368559e1ab93ce3b644a9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala468651e880368559e1ab93ce3b644a9)): ?>
<?php $component = $__componentOriginala468651e880368559e1ab93ce3b644a9; ?>
<?php unset($__componentOriginala468651e880368559e1ab93ce3b644a9); ?>
<?php endif; ?>
    <?php if (isset($component)) { $__componentOriginala468651e880368559e1ab93ce3b644a9 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginala468651e880368559e1ab93ce3b644a9 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.forms','data' => ['col' => '6','label' => ''.e(__('dashboard.name_ar')).'','name' => 'name[ar]','value' => $academy?->getTranslation('name', 'ar') ?? '']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('forms'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['col' => '6','label' => ''.e(__('dashboard.name_ar')).'','name' => 'name[ar]','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($academy?->getTranslation('name', 'ar') ?? '')]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginala468651e880368559e1ab93ce3b644a9)): ?>
<?php $attributes = $__attributesOriginala468651e880368559e1ab93ce3b644a9; ?>
<?php unset($__attributesOriginala468651e880368559e1ab93ce3b644a9); ?>
<?php endif; ?>
<?php if (isset($__componentOriginala468651e880368559e1ab93ce3b644a9)): ?>
<?php $component = $__componentOriginala468651e880368559e1ab93ce3b644a9; ?>
<?php unset($__componentOriginala468651e880368559e1ab93ce3b644a9); ?>
<?php endif; ?>
</div>

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

<div class="row">
    <?php if (isset($component)) { $__componentOriginaleebd0438791cc0f780c9af7786d8bac8 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginaleebd0438791cc0f780c9af7786d8bac8 = $attributes; } ?>
<?php $component = App\View\Components\Image::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('image'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\Image::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['label' => ''.e(__('dashboard.image')).'','name' => 'image','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($academy?->image ?? null)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginaleebd0438791cc0f780c9af7786d8bac8)): ?>
<?php $attributes = $__attributesOriginaleebd0438791cc0f780c9af7786d8bac8; ?>
<?php unset($__attributesOriginaleebd0438791cc0f780c9af7786d8bac8); ?>
<?php endif; ?>
<?php if (isset($__componentOriginaleebd0438791cc0f780c9af7786d8bac8)): ?>
<?php $component = $__componentOriginaleebd0438791cc0f780c9af7786d8bac8; ?>
<?php unset($__componentOriginaleebd0438791cc0f780c9af7786d8bac8); ?>
<?php endif; ?>
    <div class="col-md-6">
        <label class="form-label"><?php echo e(__('dashboard.status')); ?></label>
        <select name="is_active" class="form-select">
            <option value="1" <?php echo e(($academy?->is_active ?? true) ? 'selected' : ''); ?>><?php echo e(__('dashboard.active')); ?></option>
            <option value="0" <?php echo e(($academy?->is_active ?? true) ? '' : 'selected'); ?>><?php echo e(__('dashboard.inactive')); ?></option>
        </select>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <label class="form-label"><?php echo e(__('dashboard.coaches')); ?></label>
        <select name="coaches[]" id="academy-coaches-select" class="form-select" multiple>
            <?php $__currentLoopData = $coaches ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $coach): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($coach->id); ?>" data-game-id="<?php echo e($coach->game_id ?? ''); ?>" <?php echo e(in_array($coach->id, $academy?->coaches->pluck('id')->toArray() ?? []) ? 'selected' : ''); ?>><?php echo e($coach->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        <small class="text-muted"><?php echo e(__('dashboard.hold_ctrl_to_select_multiple')); ?>. <?php echo e(__('dashboard.coaches_filtered_by_game')); ?></small>
    </div>
</div>
<?php /**PATH /home/takwgzfj/montsportscamp.com/resources/views/admin/academies/__inputs.blade.php ENDPATH**/ ?>