<?php if(theme_option('real_estate_enable_filter_by_project', 'yes') == 'yes' && RealEstateHelper::isEnabledProjects()): ?>
    <?php
        $value = null;

        if (request()->has('project_id')) {
            $project = \Botble\RealEstate\Models\Project::query()->find(request()->input('project_id'));

            if ($project) {
                $value = $project->name;
            }
        }
    ?>

    <div class="<?php echo \Illuminate\Support\Arr::toCssClasses(['box-select',  $class ?? null]); ?>" data-bb-toggle="search-suggestion">
        <label class="title-select fw-5"><?php echo e(__('Project')); ?></label>
        <input type="hidden" name="project_id">
        <div class="position-relative">
            <input
                type="text"
                class="form-control"
                placeholder="<?php echo e(__('Search project')); ?>"
                value="<?php echo e($value); ?>"
                autocomplete="off"
                data-url="<?php echo e(route('public.ajax.projects.search')); ?>"
            />
            <div data-bb-toggle="data-suggestion"></div>
        </div>
    </div>
<?php endif; ?>

<?php /**PATH /home/agriwurd/capitalpropertiesandresidence.com/platform/themes/homzen/views/real-estate/partials/filters/projects.blade.php ENDPATH**/ ?>