@php if (theme_option('show_map_on_properties_page', 'yes') == 'yes') { Theme::asset() ->usePath() ->add('leaflet-css', 'libraries/leaflet/leaflet.css'); Theme::asset() ->container('footer') ->usePath() ->add('leaflet-js', 'libraries/leaflet/leaflet.js'); Theme::asset() ->container('footer') ->usePath() ->add('leaflet.markercluster-src-js', 'libraries/leaflet/leaflet.markercluster-src.js'); } $categories = get_property_categories([ 'indent' => '↳', 'conditions' => ['status' => \Botble\Base\Enums\BaseStatusEnum::PUBLISHED], ]); @endphp
{!! apply_filters( 'properties_projects_detail_search_box', view(Theme::getThemeNamespace() . '::views.real-estate.includes.search-box', [ 'type' => 'property', 'categories' => $categories, ])->render(), ['type' => 'property', 'categories' => $categories], ) !!}
@include(Theme::getThemeNamespace() . '::views.real-estate.includes.filters', [ 'isChangeView' => theme_option('show_map_on_properties_page', 'yes') == 'yes', ])
{!! Theme::partial('real-estate.properties.items', compact('properties')) !!}
@if (theme_option('show_map_on_properties_page', 'yes') == 'yes')
@endif
@if (theme_option('show_map_on_properties_page', 'yes') == 'yes') @endif