<?php
    $categories = get_property_categories_for_select();
    $selectedCategoryId = request()->query('category_id');
    if (isset($category)) {
        $selectedCategoryId = $category->id;
    }
?>

<div class="form-group-3 form-style form-search-category" <?php if(theme_option('real_estate_enable_advanced_search', 'yes') != 'yes'): ?> style="border: none" <?php endif; ?>>
    <label for="category_id"><?php echo e(__('Category')); ?></label>
    <div class="group-select">
        <select name="category_id" id="category_id" class="select_js">
            <option value=""><?php echo e(__('All')); ?></option>
            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <option value="<?php echo e($item->id); ?>"<?php if($selectedCategoryId == $item->id): echo 'selected'; endif; ?>><?php echo BaseHelper::clean($item->indent_text); ?> <?php echo BaseHelper::clean($item->name); ?></option>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
    </div>
</div>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/views/real-estate/partials/filters/categories.blade.php ENDPATH**/ ?>