@php $store_settings = getStoreSettings(); @endphp
@foreach ($sliders as $slider) @endforeach
@if (count($offers) > 0) {{-- Display first 2 offers --}} @for ($i = 0; $i < min(2, count($offers)); $i++) @php $offersImage = dynamic_image($offers[$i]->banner_image, 635); @endphp @endfor @endif
{{-- Featured Section --}} @foreach ($sections as $count_key => $row) @if ($count_key == 0) {{-- Display only the first section --}} @if (!empty($row->product_details)) @if ($row->style == 'style_1')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @endphp
@endforeach
@endif @if ($row->style == 'style_2')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @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') }}
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @endphp
@endforeach
@endif @endif @endif @endforeach {{-- @dd($offers); --}} {{-- Offer Section --}} @php $Thirdoffer = $offers[2] ?? ''; @endphp @if (isset($Thirdoffer) && !empty($Thirdoffer) && $Thirdoffer !== '')
@php $singleOffersImage = dynamic_image($Thirdoffer->banner_image, 635); @endphp
@endif {{-- end offers section --}} {{-- Remaining Featured Sections --}} @foreach ($sections as $count_key => $row) @if ($count_key > 0) {{-- Display remaining sections --}} @if (!empty($row->product_details)) @if ($row->style == 'style_1')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @endphp
@endforeach
@endif @if ($row->style == 'style_2')
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @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') }}
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); @endphp
@endforeach
@endif @endif @endif @endforeach {{-- End Section --}} @php $categories = $categories['categories']; @endphp @if (is_array($categories) && count($categories) >= 1)
@if ($store_settings['category_section_title'] != null)

{{ $store_settings['category_section_title'] }}

@else

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

@endif

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

@foreach ($categories as $category) @endforeach
@endif {{-- brands --}} @if (isset($brands['brands']) && 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!') }}

@foreach ($brands['brands'] as $brand) @endforeach
@endif {{-- end brands --}}