@php use App\Models\Blog; use App\Services\TranslationService; use App\Services\StoreService; $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']; // dd($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!') }}

@foreach ($categories as $category) @endforeach
@endif {{-- end popular categories --}} @foreach ($sections as $count_key => $row) @if (!empty($row->product_details) && count((array) $row->product_details) > 0) @if ($row->style == 'style_1')
{{-- remove pro-hover-3 class in all other components keep only in three --}}
@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 @endforeach {{-- offers --}} @if (isset($offers) && count($offers) > 0) {{-- @dd($offers); --}}
@foreach ($offers as $offer) @endforeach
@endif {{-- end offers --}} {{-- marquee text --}} @if (isset($offers) && count($offers) > 0)
@endif {{-- end marquee text --}} {{-- @dd($blogs_count); --}}

Latest from our Blog

Top news stories of the day

@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 {{-- service section --}} {{-- end service section --}}