@include('components.skip-links',['links'=>[ 'main-content'=> __('messages.t_skip_to_main_content'), 'footer'=> __('messages.t_skip_to_footer') ]]) @if ($adPlacementSettings->after_header) @endif
@foreach ($this->homeSettings->section_data as $item) @switch($item['type']??'') @case('categories')

{{ __('messages.t_explore_by_categories') }}

@if (!$adTypes->isEmpty() && count($adTypes) > 1) @if ($homeSettings->ad_type_dropdown_enable)
@foreach ($adTypes as $index => $adType) @endforeach
@else
@foreach ($adTypes as $index => $adType) @endforeach
@endif @endif
@if (getCurrentTheme() == 'modern')
@endif @if ($categories->isNotEmpty())
@foreach ($categories as $category) @endforeach
@else
@endif @if (getCurrentTheme() == 'modern')
@endif
@break @case('spotlight') @if (!$spotlightAds->isEmpty())

{{ __('messages.t_spotlight_display') }}

@foreach ($spotlightAds as $ad) @endforeach
@endif @break @case('fresh_ads') @if (!$freshAds->isEmpty())

{{ __('messages.t_fresh_recommend') }}

@foreach ($freshAds as $ad) @endforeach
@endif @break @default @endswitch @endforeach @if (count($popularAds) && getSubscriptionSetting('status')&& getActiveSubscriptionPlan() && getActiveSubscriptionPlan()?->product_performance_analysis)
@foreach ($popularAds as $ad) @endforeach
@endif @foreach ($displayedPopularAdsCategories as $categoryId) @if (count($this->getPopularAdsBasedOnCategory($categoryId)))
@php $categoryName = \App\Models\Category::find($categoryId)?->name ?? ''; @endphp
@foreach ($this->getPopularAdsBasedOnCategory($categoryId) as $ad) @endforeach
@endif @endforeach
@if ($adPlacementSettings->before_footer) @endif {{ __('messages.t_post_your_ad') }} @script @endscript