@extends('ecommerce::layout.layout') @section('title', __('ecommerce::ecommerce.home')) @push('head') @foreach($clientBrands ?? [] as $brand) @endforeach @endpush @section('content')
@include('ecommerce::layout.sidebar')

@lang('ecommerce::ecommerce.sidebar.categories')

@foreach($categories as $category) @endforeach

@lang('ecommerce::ecommerce.featured_products')

@php // Determine which product set to pass to the partial based on the route $tabNew = null; $tabFeatured = null; $tabBest = null; if (request()->routeIs('products.featured')) { $tabFeatured = $featuredProducts ?? collect(); } elseif (request()->routeIs('products.best-sellers')) { $tabBest = $bestSellers ?? collect(); } else { // Default to New Arrivals for home/index or explicit new-arrivals route $tabNew = $newProducts ?? collect(); } @endphp @include('ecommerce::pages.partials.tab-content', [ 'newProducts' => $tabNew, 'featuredProducts' => $tabFeatured, 'bestSellers' => $tabBest ])

@lang('ecommerce::ecommerce.exclusive_collections')

@foreach($exclusiveProducts as $product)
{{ $product->title }}
{{-- Wishlist Button --}} @include('ecommerce::partials.product.wishlist-btn', ['product' => $product]) @auth @else @endauth
{{ \Illuminate\Support\Str::limit($product->title, 30) }}
@for($i = 1; $i <= 5; $i++) @endfor

{{ \Illuminate\Support\Str::limit($product->description ?? __('ecommerce::ecommerce.product.no_description'), 100) }}

${{ number_format($product->default_price, 2) }}

${{ number_format($product->default_price * 1.5, 2) }}

@lang('ecommerce::ecommerce.shop_now')
@endforeach

@lang('ecommerce::ecommerce.new_arrival')

@foreach($sectionNewArrivals->take(6) as $product)
{{ $product->title }}
{{-- Wishlist Button --}} @include('ecommerce::partials.product.wishlist-btn', ['product' => $product]) @auth @else @endauth
@for($i = 1; $i <= 5; $i++) @endfor
{{ \Illuminate\Support\Str::limit($product->title, 35) }}

{{ \Illuminate\Support\Str::limit($product->description ?? __('ecommerce::ecommerce.product.no_description'), 80) }}

${{ number_format($product->default_price, 2) }}

@endforeach
@if(isset($merchantSlider) && $merchantSlider->isNotEmpty())

@lang('ecommerce::ecommerce.merchants')

@endif @if(isset($largeBanner) && $largeBanner->isNotEmpty())
@php $lBanner = $largeBanner->first(); @endphp
{{--

@lang('ecommerce::ecommerce.recent_news')

--}}

@lang('ecommerce::ecommerce.our_client')

@endif
@endsection