@php use App\Services\StoreService; $store_settings = app(StoreService::class)->getStoreSettings(); @endphp {{-- category section --}} @php $categories = $categories['categories']; @endphp @if (is_array($categories) && count($categories) >= 6)
@endif {{-- end category section --}} {{-- First Featured Section --}} @foreach ($sections as $count_key => $row) @if ($count_key == 0) {{-- Display only the first section --}} @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') }}
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); $details = (object) $details; @endphp
@endforeach
@endif @endif @endif @endforeach {{-- End Featured Section --}} {{-- offer section --}} @if (count($offers) > 4)
@endif {{-- end offer section --}} {{-- Remaining Featured Sections --}} @foreach ($sections as $count_key => $row) @if ($count_key > 0) {{-- Display remaining sections --}} @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') }}
@foreach ($row->product_details as $details)
@php $component = getProductDisplayComponent($store_settings); $details = (object) $details; @endphp
@endforeach
@endif @endif @endif @endforeach {{-- End Section --}} {{-- safety and security --}} {{-- end safety and security --}} {{-- 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 --}}