@php Theme::asset()->container('footer')->usePath()->add('nouislider', 'js/nouislider.min.js'); Theme::asset()->container('footer')->usePath()->add('wnumb', 'js/wNumb.min.js'); Theme::asset()->container('footer')->usePath()->add('nice-select', 'js/jquery.nice-select.min.js'); $style ??= 1; $noLeftRound ??= false; $centeredTabs ??= false; $projectsSearchEnabled = (bool) ($shortcode->projects_search_enabled ?: true); $defaultSearchType = $shortcode->default_search_type ?: 'project'; $tabs = collect(['project' => __('Project'), 'rent' => __('For Rent'), 'sale' => __('For Sale')]) ->when(! RealEstateHelper::isEnabledProjects(), function ($tabs) use (&$projectsSearchEnabled) { $projectsSearchEnabled = false; return $tabs->forget('project'); }) ->reject(fn ($tab, $key) => $key !== 'project' && ! in_array($key, RealEstateHelper::enabledPropertyTypes())); @endphp @if ($tabs->isNotEmpty())
@if (count($tabs) > 1) @endif
$style === 3]) @if ($projectsSearchEnabled && $defaultSearchType === 'project') action="{{ RealEstateHelper::getProjectsListPageUrl() }}" @else action="{{ RealEstateHelper::getPropertiesListPageUrl() }}" @endif method="get" > @include(Theme::getThemeNamespace('views.real-estate.partials.filters.base')) @if ($projectsSearchEnabled)
@include(Theme::getThemeNamespace('views.real-estate.partials.filters.price')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.flat'))
@include(Theme::getThemeNamespace('views.real-estate.partials.filters.floor')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.block'))
@endif
! $projectsSearchEnabled || $defaultSearchType === 'project'])>
@include(Theme::getThemeNamespace('views.real-estate.partials.filters.price')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.square'))
@include(Theme::getThemeNamespace('views.real-estate.partials.filters.bathroom')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.bedroom')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.floor')) @include(Theme::getThemeNamespace('views.real-estate.partials.filters.projects'))
@include(Theme::getThemeNamespace('views.real-estate.partials.filters.features'))
@endif