@extends('themes.jewelry.layouts.master') @section('title', ($setting->name ?? 'Kunjo Jewellers') . ' – Best Jewellery Shop In BD') @section('content') @php $hp = $hp ?? ($homepageSettings ?? []); $useBuilder = \App\Services\HomepageSettingsService::usesPageBuilder(); $sliderMs = max(2000, min(15000, (int) ($hp['slider_interval'] ?? 5000))); $goldPrices = $goldPrices ?? ($hp['gold_prices'] ?? config('jewelry-home.gold_prices', [])); $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 @if(!empty($hp['show_trust_bar'])) @include('themes.shared.trust-bar', ['hp' => $hp, 'colClass' => 'col-6 col-lg-3']) @endif {{-- Popular Categories --}} @if(!empty($hp['show_categories']) && $categories->count() > 0)

Popular Categories

@foreach($categories->take(6) as $cat)
@if($cat->image) {{ $cat->name }} @else @endif
{{ $cat->name }}
@endforeach
@endif {{-- Trendy Collection --}} @if(!empty($hp['show_trending']) && ($trendingProducts ?? collect())->count() > 0)

Trendy Collection

Collect your loves with our newest arrivals.

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

Autumn Collection

Collect your loves with our autumn arrivals.

@foreach($newArrivals as $product) @include('themes.jewelry.layouts.product-card', compact('product')) @endforeach
@endif {{-- Featured Products tabs --}} @if(($trendingProducts ?? collect())->count() || ($newArrivals ?? collect())->count() || ($bestSellers ?? collect())->count())

Featured Products

@forelse($newArrivals ?? collect() as $product) @include('themes.jewelry.layouts.product-card', compact('product')) @empty
No new arrivals yet.
@endforelse
@forelse($trendingProducts ?? collect() as $product) @include('themes.jewelry.layouts.product-card', compact('product')) @empty
No featured products yet.
@endforelse
@forelse($bestSellers ?? collect() as $product) @include('themes.jewelry.layouts.product-card', compact('product')) @empty
No best sellers yet.
@endforelse
@endif {{-- Today's Gold Price --}} @if(!empty($hp['show_gold_price']) && count($goldPrices) > 0)

Today's Gold Price

@foreach($goldPrices as $rate)
{{ $rate['label'] ?? '' }}
{{ number_format($rate['price'] ?? 0) }} BDT
@endforeach
@endif @endif @endsection