@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) @foreach($banners as $i => $banner) @php $bannerSrc = $mediaUrl($banner->image); @endphp @if($banner->link) @else @endif @if($banner->title || $banner->subtitle) @if($banner->title){{ $banner->title }}@endif @if($banner->subtitle){{ $banner->subtitle }}@endif @if($banner->link && $banner->button_text) {{ $banner->button_text }} @endif @endif @endforeach @if($banners->count() > 1) @endif @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) @else @endif {{ $cat->name }} @endforeach @endif {{-- Featured Collections --}} @if(!empty($hp['show_featured_collections']) && (($menProducts ?? collect())->count() || ($womenProducts ?? collect())->count())) Featured Collections Women's Men's @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'])) new premium dress explore living Shop Now ready to wear explore living Shop Now @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'])) Formal Wear Where confidence meets cut Shop Now ethnic wear Rooted in tradition, styled for today Shop Now @endif {{-- Journal --}} @if(!empty($hp['show_journal']) && ($journalPosts ?? collect())->count() > 0) From the Journal view more @foreach($journalPosts as $post) @if($post->image) @endif {{ optional($post->published_at)->format('M d, Y') }} {{ $post->title }} {{ Str::limit($post->excerpt ?? strip_tags($post->content), 120) }} @endforeach @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
{{ $banner->subtitle }}
explore living
Where confidence meets cut
Rooted in tradition, styled for today
{{ Str::limit($post->excerpt ?? strip_tags($post->content), 120) }}