
<?php

    $inputAttributes = $attributes->merge([
        'class' => "form-select select2 $class",
        'name' => $name,
        'id' => $id,
        'data-control' => "select2",
        'data-allow-clear' => "true",
        'data-dropdown-parent' => $parent,
        'data-placeholder' => !empty($placeholder) ? $placeholder : __("Please select"),

        'disabled' => $disabled,
        'required' => $required,
    ]);

?>


<select <?php echo e($inputAttributes); ?> >
    <option></option>
    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!empty($options)): ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(is_array($value)): ?>
                <option value="<?php echo e($key); ?>" <?php echo e((string) $selected === (string) $key ? 'selected' : ''); ?>>
                    <?php echo e($value[$valueName] ?? ''); ?>

                </option>
            <?php else: ?>
                <option value="<?php echo e($key); ?>" <?php echo e((string) $selected === (string) $key ? 'selected' : ''); ?>>
                    <?php echo e(__($value, [], !empty($clocale) ? $clocale : app()->getLocale() )); ?>

                </option>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</select>
<span data-name="<?php echo e($name); ?>"></span>
<?php /**PATH E:\xamp\htdocs\Gym Management System\resources\views/components/form-select.blade.php ENDPATH**/ ?>