@php use App\Services\StoreService; $categories = $categories['categories']; $store_settings = app(StoreService::class)->getStoreSettings(); @endphp
{{--
--}}
View All Categories {{--
View All Categories
--}}
@foreach ($sliders as $slider)
@if ($slider['type'] !== 'default') slideshow @else slideshow @endif
@endforeach
{{-- 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 (array_slice($brands['brands'], 0, 8) as $brand) @endforeach
@endif {{-- end brands --}} {{-- 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 --}} {{-- rating --}} @if (isset($ratings) && is_array($ratings) && count($ratings) >= 1)

What People Are Saying

@foreach (array_slice($ratings, 0, 6) as $rating) {{--
{{ $rating->user_name ?: 'Anonymous' }}

{{ $rating->title ?: 'Customer Feedback' }}

@for ($i = 1; $i <= 5; $i++) @endfor

{{ $rating->comment }}

{{ $rating->user_name ?: 'Anonymous' }}

Posted on {{ \Carbon\Carbon::parse($rating->created_at)->format('d/m/Y') }}

--}}
{{ $rating->user_name ?: 'Anonymous' }}

{{ $rating->title ?: 'Customer Feedback' }}

@for ($i = 1; $i <= 5; $i++) @endfor

{{ $rating->comment ?: '' }}

{{ $rating->user_name ?: 'Anonymous' }}

Posted on {{ \Carbon\Carbon::parse($rating->created_at)->format('d/m/Y') }}

@endforeach
@endif {{-- end rating --}} {{-- offers --}} @if (count($offers) > 2)
@endif {{-- end offers --}} {{-- 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 --}}