@extends('user-front.layout') @section('meta-description', !empty($seo) ? $seo->home_meta_description : '') @section('meta-keywords', !empty($seo) ? $seo->home_meta_keywords : '') @section('page-title', $keywords['Home'] ?? __('Home')) @section('og-meta') @endsection @php $additional_section_status = json_decode($userBs->additional_section_status, true) ?? []; // Alias: HomeController passes item_categories; this template uses $categories $categories = $item_categories ?? collect(); @endphp @section('content')
@if (count($sliders) > 0) @foreach ($sliders as $slider)
TRENDING NOW

{{ $slider->title ?? $slider->subtitle }}

{{ $slider->text }}

@if ($slider->btn_url && $slider->btn_name) {{ $slider->btn_name }} @else Buy Now @endif Learn More
@endforeach @else

{{ $user->shop_name ?? 'Welcome to Our Store' }}

{{ __('Shop the latest deals and products') }}

@endif
@if(isset($banners) && count($banners) > 0)
@foreach($banners->take(2) as $b)
@if(!empty($b->title))

{{ $b->title }}

@endif {{ __('Shop Now') }}
@endforeach
@endif
@if ($ubs->category_section == 1)

Featured Categories

@endif @if(isset($banners) && count($banners) >= 6)
@php $midBanners = $banners->slice(2, 4); $bgClasses = ['bg-cream-light', 'bg-blue-light', 'bg-green-light', 'bg-pink-light']; $i = 0; @endphp @foreach($midBanners as $b)
Banner

{{ $b->title }}

Go To Supplier
@php $i++; @endphp @endforeach
@endif
@if(isset($banners) && count($banners) >= 7) @php $vertBanner = $banners->get(6) ?? $banners->last(); @endphp

{{ $vertBanner->title }}

Shop Now
Vertical Promo
@else

Everyday Fresh Clean with Our Products

Shop Now
Juice Promo
@endif

Popular Items

@foreach($categories->take(5) as $cat)
@endforeach
{{-- Variation Modal & Quick View Modal --}} @include('user-front.partials.variation-modal')

Stay home & get your daily needs from our shop

Start Your Daily Shopping with Ecom Mart

@csrf
Grocery Shopping
@endsection @section('scripts') @endsection