@extends('themes.panjabi.layouts.master') @section('title', \App\Services\ThemeProfileService::metaTitle()) @section('content') @php use App\Models\Product; use App\Services\ThemeCatalogService; $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 @if($banners->count() > 0)
@endif @if(!empty($hp['show_new_arrivals']) && ($newArrivals ?? collect())->count() > 0)

Discover What's New

View all
@foreach($newArrivals->take(12) as $product) @include('themes.panjabi.layouts.product-card', compact('product')) @endforeach
@endif @if(!empty($hp['show_category_sections'])) @foreach($categories as $cat) @php $catProducts = Product::where('status', 1) ->where(function ($q) use ($cat) { $q->where('category_id', $cat->id) ->orWhereIn('category_id', $cat->children()->where('status', 1)->pluck('id')); }); ThemeCatalogService::scopeProducts($catProducts); $catProducts = $catProducts->latest()->limit(12)->get(); @endphp @if($catProducts->count())

{{ $cat->name }}

View all
@foreach($catProducts as $product) @include('themes.panjabi.layouts.product-card', compact('product')) @endforeach
@endif @endforeach @endif @if(!empty($hp['show_trending']) && ($trendingProducts ?? collect())->count() > 0)

Explore All Panjabis

Explore our full collection of Panjabis, offering a variety of styles, fabrics, and colors for every occasion. Find your perfect fit with ease.

@foreach($trendingProducts->take(12) as $product) @include('themes.panjabi.layouts.product-card', compact('product')) @endforeach
@endif @endif @endsection