@php use App\Services\StoreService; use App\Services\TranslationService; $store_settings = app(StoreService::class)->getStoreSettings(); $language_code = app(TranslationService::class)->getLanguageCode(); $category_section_title = $store_settings['category_section_title'] ?? 'Categories'; @endphp
@foreach ($sliders as $slider)
@if ($slider['type'] !== 'default') slideshow @else slideshow @endif
@endforeach
@php $categories = $categories['categories']; @endphp @if (is_array($categories) && count($categories) >= 1)
@if ($store_settings['category_section_title'] != null)

{{ is_array($category_section_title) ? $category_section_title[$language_code] ?? ($category_section_title['en'] ?? reset($category_section_title)) : $category_section_title }}

@else

{{ labels('front_messages.popular_categories', 'Popular Categories') }}

@endif

{{ labels('front_messages.explore_categories', 'Explore top picks in our Categories!') }}

@endif @if (is_array($categories_section) && count($categories_section) >= 1) @foreach ($categories_section as $category_section)

{{ $category_section->title }}

{{ labels('front_messages.explore_categories', 'Explore top picks in our Categories!') }}

@php $categories = $category_section->categories_detail; @endphp
@endforeach @endif @if (is_array($brands['brands']) && count($brands['brands']) >= 1)

{{ labels('front_messages.popular_brands', 'Popular Brands') }}

{{ labels('front_messages.explore_brands', 'Explore top picks in our Brands!') }}

@endif @foreach ($sections as $count_key => $row) @if (!empty($row->product_details) && count((array) $row->product_details) > 0) @if ($row->style == 'style_1')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); $details = (object) $details; @endphp
@endforeach
@endif @if ($row->style == 'style_2')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); $details = (object) $details; @endphp
@endforeach
{{ $row->title }}

{{ $row->title }}

{{ $row->short_description }}

{{ labels('front_messages.shop_now', 'Shop Now') }}
@endif @if ($row->style == 'style_3')
{{ $row->title }}

{{ $row->title }}

{{ $row->short_description }}

{{ labels('front_messages.explore_now', 'Explore Now') }}
< Fontainebleau class="grid-products swiper style2-mySwiper gp15 arwOut5 hov-arrow circle-arrow arrowlr-0 {{ ($store_settings['products_display_style_for_web'] ?? '') == 'products_display_style_for_web_3' ? 'pro-hover3' : '' }}">
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); $details = (object) $details; @endphp
@endforeach
@endif @endif @endforeach @if ( $web_settings['support_mode'] == 1 || $web_settings['shipping_mode'] == 1 || $web_settings['safety_security_mode'] == 1 || $web_settings['return_mode'] == 1)
@endif