@extends('themes.cloth.layouts.master') @section('title', ($setting->name ?? 'Top Ten Mart Ltd') . ' — Fashion Store') @section('content') @php $hp = $hp ?? ($homepageSettings ?? []); $useBuilder = \App\Services\HomepageSettingsService::usesPageBuilder(); $sliderMs = max(2000, min(15000, (int) ($hp['slider_interval'] ?? 4500))); $mediaUrl = function ($path) { if (!$path) return null; if (str_starts_with($path, 'http://') || str_starts_with($path, 'https://')) return $path; return asset($path); }; @endphp @if($useBuilder) @include('frontEnd.partials.grapes-content') @else {{-- Hero Slider --}} @if($banners->count() > 0)
@endif {{-- Trust Bar --}} @if(!empty($hp['show_trust_bar'])) @include('themes.shared.trust-bar', ['hp' => $hp, 'colClass' => 'col-6 col-lg-3']) @endif {{-- Top Categories --}} @if(!empty($hp['show_categories']) && $categories->count() > 0)

Top Categories

@foreach($categories->take(5) as $cat)
@if($cat->image) {{ $cat->name }} @else @endif
{{ $cat->name }}
@endforeach
@endif {{-- Featured Collections --}} @if(!empty($hp['show_featured_collections']) && (($menProducts ?? collect())->count() || ($womenProducts ?? collect())->count()))

Featured Collections

@forelse(($womenProducts ?? collect()) as $product) @include('themes.cloth.layouts.product-card', compact('product')) @empty
No women's products yet.
@endforelse
@forelse(($menProducts ?? collect()) as $product) @include('themes.cloth.layouts.product-card', compact('product')) @empty
No men's products yet.
@endforelse
@endif {{-- Promo Banners --}} @if(!empty($hp['show_promo_banners']))
@endif {{-- Top Trending --}} @if(!empty($hp['show_trending']) && ($trendingProducts ?? collect())->count() > 0)

Top Trending Products

@foreach($trendingProducts as $product) @include('themes.cloth.layouts.product-card', compact('product')) @endforeach
@endif {{-- New Arrivals --}} @if(!empty($hp['show_new_arrivals']) && ($newArrivals ?? collect())->count() > 0)

New Arrival Products

@foreach($newArrivals as $product) @include('themes.cloth.layouts.product-card', compact('product')) @endforeach
@endif {{-- Formal + Ethnic --}} @if(!empty($hp['show_formal_ethnic']))
@endif {{-- Journal --}} @if(!empty($hp['show_journal']) && ($journalPosts ?? collect())->count() > 0)

From the Journal

view more
@endif {{-- Gift Cards --}} @if(!empty($hp['show_gift_cards']) && ($giftCardProducts ?? collect())->count() > 0)

Gift Card

@foreach($giftCardProducts as $product) @include('themes.cloth.layouts.product-card', compact('product')) @endforeach
@endif @endif @endsection