@php Theme::asset()->container('footer')->usePath()->add('filter', 'js/filter.js'); Theme::asset()->container('footer')->usePath()->add('wishlist', 'js/wishlist.js'); Theme::set('navStyle', 'dark'); $showMap = false; $backgroundImage = theme_option('categories_background_image') ?? theme_option('default_page_cover_image'); $layouts = [ 'grid' => [ 'name' => __('Grid'), 'icon' => 'mdi mdi-view-grid-outline', ], 'list' => [ 'name' => __('List'), 'icon' => 'mdi mdi-view-list-outline', ], ]; $currentLayout = BaseHelper::stringify(request()->query('layout')) ?? (theme_option('properties_list_layout') ?: 'grid'); if (! in_array($currentLayout, array_keys($layouts))) { $currentLayout = 'grid'; } $properties ->loadCount('reviews', fn ($query) => $query->where('status', \Botble\RealEstate\Enums\ReviewStatusEnum::APPROVED)) ->loadAvg('reviews', 'star'); @endphp
{!! BaseHelper::clean($category->description) !!}