<?php if(theme_option('real_estate_enable_filter_by_bedroom', 'yes') == 'yes'): ?>
    <?php
        $rawBedroom = request()->input('bedroom', '');
        $selectedBedrooms = array_filter(is_array($rawBedroom) ? $rawBedroom : explode(',', (string) $rawBedroom));
    ?>
    <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['box-select form-search-bedroom', $class ?? null]); ?>">
        <label class="title-select text-variant-1"><?php echo e(__('Bedrooms')); ?></label>
        <div class="multi-select-dropdown" data-all-label="<?php echo e(__('All')); ?>">
            <input type="hidden" name="bedroom" value="<?php echo e(implode(',', $selectedBedrooms)); ?>" />
            <div class="multi-select-trigger">
                <span class="multi-select-label"><?php echo e($selectedBedrooms ? implode(', ', $selectedBedrooms) : __('All')); ?></span>
                <span class="multi-select-arrow"></span>
            </div>
            <div class="multi-select-options">
                <?php $__currentLoopData = range(1, 5); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $i): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <label class="multi-select-option">
                        <input type="checkbox" value="<?php echo e($i); ?>" class="tf-checkbox style-1" <?php if(in_array($i, $selectedBedrooms)): echo 'checked'; endif; ?> />
                        <span>
                            <?php if($i < 5): ?>
                                <?php echo e($i === 1 ? __('1 Bedroom') : __(':number Bedrooms', ['number' => $i])); ?>

                            <?php else: ?>
                                <?php echo e(__(':number+ Bedrooms', ['number' => $i])); ?>

                            <?php endif; ?>
                        </span>
                    </label>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/views/real-estate/partials/filters/bedroom.blade.php ENDPATH**/ ?>