@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) @foreach($banners as $i => $banner) @php $bannerSrc = $mediaUrl($banner->image); @endphp @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 @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) @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 New Arrivals Featured Best Seller @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
{{ $banner->subtitle }}
Collect your loves with our newest arrivals.
Collect your loves with our autumn arrivals.