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**/ ?>