HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/ipsremont-demo/storage/framework/views/b3fa89abf1dfb8dd4e73e6b39e37539f3597348b.php
<?php if(isset($filter) && $filter): ?>

<?php else: ?>
    <label for="<?php echo e($name); ?>"
           class="mr-3 mb-0 d-none d-md-block">
        <?php if(isset($model)): ?>
            <?php echo app('translator')->get($model->getLabel($name)); ?>
        <?php else: ?>
            <?php echo app('translator')->get($name); ?>
        <?php endif; ?>
        <?php if(isset($validate) && $validate->isRequired($name)): ?>
            <span class="text-danger">*</span>
        <?php endif; ?>

    </label>
<?php endif; ?>
<select
    data-placehodler="<?php echo e($placeholder); ?>"
    id="<?php echo e($name); ?>"
    name="<?php echo e($name); ?>"
    class="form-control select2 <?php echo e($class); ?>"
    <?php if(isset($validate) && $validate->isRequired($name)): ?> required="required" <?php endif; ?>
>
    <?php if($placeholder): ?>
        <option <?php if(empty($value) && $value !== '0'): ?> selected <?php endif; ?> value=""><?php echo e($placeholder); ?></option>
    <?php endif; ?>

    <?php $__currentLoopData = $options; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $option_key => $option_label): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <option
            value="<?php echo e($option_key); ?>"
            <?php if( (!empty($value) || $value === '0') && $option_key == $value): ?> selected <?php endif; ?>
        >


            <?php if(isset($lang) && $lang): ?>
                <?php echo e(__($option_label)); ?>

            <?php else: ?>
                <?php echo e($option_label); ?>

            <?php endif; ?>

        </option>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</select>

<?php if($error): ?>
    <div class="invalid-feedback"><?php echo e($error); ?></div>
<?php endif; ?>

<?php $__env->startSection($name); ?>
    <script>
        $('#<?php echo e($name); ?>').select2({
            width: 'resolve',
            placeholder: $(this).data('placeholder'),
            <?php if(!$search): ?>
            minimumResultsForSearch: Infinity,
            <?php endif; ?>

            <?php if(isset($ajax) && $ajax): ?>
            ajax: {
                url: "<?php echo e($ajax); ?>",
                dataType: 'json',

                <?php if(isset($parent) && $parent): ?>
                data: function (params) {
                    return {
                        id: $("#" + "<?php echo e($parent); ?>").val(),
                        search: params.term
                    }
                },
                <?php endif; ?>

                processResults: function (data, params) {
                    return {
                        results: data.items
                    };
                },
            },
            <?php endif; ?>
        });

    </script>
<?php $__env->stopSection(); ?>
<?php /**PATH /var/www/ipsremont-demo/resources/views/components/select-filter.blade.php ENDPATH**/ ?>