<?php if(is_plugin_active('location')): ?>
    <?php if(theme_option('real_estate_use_location_in_search_box_as_dropdown', 'no') === 'yes'): ?>
        <div class="form-group-2 form-style form-search-location">
            <label><?php echo e(__('Location')); ?></label>
            <div class="position-relative">
                <div class="group-select">
                    <select name="city_id" id="location" class="select_js" data-search-placeholder="<?php echo e(__('Search for a city...')); ?>">
                        <option value=""><?php echo e(__('All')); ?></option>
                        <?php if(request()->input('city_id')): ?>
                            <?php
                                $selectedCity = \Botble\Location\Models\City::query()
                                    ->wherePublished()
                                    ->where('id', request()->input('city_id'))
                                    ->first();
                            ?>
                            <?php if($selectedCity): ?>
                                <option value="<?php echo e($selectedCity->getKey()); ?>" selected><?php echo e($selectedCity->name); ?></option>
                            <?php endif; ?>
                        <?php endif; ?>
                    </select>
                </div>
            </div>
        </div>
    <?php else: ?>
        <div class="form-group-2 form-style form-search-location" data-bb-toggle="search-suggestion">
            <label><?php echo e(__('Location')); ?></label>
            <div class="position-relative">
                <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['group-ip', 'ip-icon' => $style === 3]); ?>">
                    <input type="text" class="form-control" placeholder="<?php echo e(__('Search for Location')); ?>" value="<?php echo e(BaseHelper::stringify(request()->input('location'))); ?>" name="location" data-url="<?php echo e(route('public.ajax.cities')); ?>" />
                    <?php if (isset($component)) { $__componentOriginal73995948b3bd877b76251b40caf28170 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal73995948b3bd877b76251b40caf28170 = $attributes; } ?>
<?php $component = Botble\Icon\View\Components\Icon::resolve(['name' => 'ti ti-current-location'] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('core::icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Botble\Icon\View\Components\Icon::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(\Illuminate\Support\Arr::toCssClasses(['icon-right icon-location' => $style === 3]))]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $attributes = $__attributesOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__attributesOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal73995948b3bd877b76251b40caf28170)): ?>
<?php $component = $__componentOriginal73995948b3bd877b76251b40caf28170; ?>
<?php unset($__componentOriginal73995948b3bd877b76251b40caf28170); ?>
<?php endif; ?>
                </div>
                <div data-bb-toggle="data-suggestion"></div>
            </div>
        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/views/real-estate/partials/filters/location.blade.php ENDPATH**/ ?>