@extends('layouts.app') @php $_heroImg = setting('hero_image') ? asset('storage/'.setting('hero_image')) : 'https://images.unsplash.com/photo-1523381210434-271e8be1f52b?w=600&h=750&fit=crop'; $_heroTitle = setting('hero_title', 'Koleksi TerbaruMusim Ini'); $_heroSubtitle = setting('hero_subtitle', 'Temukan gaya terbaikmu dengan koleksi fashion premium. Dari kasual hingga formal, semua ada di sini.'); $_ctaText = setting('cta_text', 'Shop Now →'); $_ctaLink = setting('cta_link', '/products'); @endphp @section('og_title', strip_tags($_heroTitle)) @section('og_description', strip_tags($_heroSubtitle)) @section('og_image', $_heroImg) @section('content') {{-- Hero Banner --}} Koleksi Terbaru {!! $_heroTitle !!} {{ $_heroSubtitle }} {{ $_ctaText }} Lihat Koleksi {{-- Flash Sale --}} @if($flashSaleProducts->count()) Flash Sale Jangan lewatkan diskon spesial! 00 JAM 00 MENIT 00 DETIK @foreach($flashSaleProducts as $product) @if($product->badge) {{ $product->badge }} @endif @if($product->discount_percentage) -{{ $product->discount_percentage }}% @endif {{ $product->category->name }} {{ $product->name }} Rp {{ number_format($product->final_price, 0, ',', '.') }} @if($product->sale_price) Rp {{ number_format($product->price, 0, ',', '.') }} @endif Detail @endforeach @endif {{-- Kategori --}} Kategori @foreach($categories as $cat) {{ $cat->name }} {{ $cat->name }} @endforeach {{-- Featured Products --}} @if($featuredProducts->count()) Produk Unggulan Lihat Semua @foreach($featuredProducts as $product) @include('products._card', ['product' => $product]) @endforeach @endif {{-- Banner Promo --}} @php $_bannerPromoTitle = setting('banner_title', 'Free Ongkir Pembelian > Rp 200rb'); $_bannerPromoText = setting('banner_text', 'Nikmati gratis ongkir untuk seluruh wilayah Indonesia.'); $_bannerPromoBtn = setting('banner_button', 'Belanja Sekarang'); $_bannerPromoLink = setting('banner_link', route('products.index')); $_bannerPromoImg = setting('banner_image'); @endphp @if($_bannerPromoTitle || $_bannerPromoText) {{ $_bannerPromoTitle }} @if($_bannerPromoText){{ $_bannerPromoText }}@endif {{ $_bannerPromoBtn }} @endif {{-- New Arrivals --}} @if($newProducts->count()) New Arrivals Lihat Semua @foreach($newProducts as $product) @include('products._card', ['product' => $product]) @endforeach @endif @endsection @push('scripts') @endpush
Koleksi Terbaru
{{ $_heroSubtitle }}
Jangan lewatkan diskon spesial!
{{ $product->category->name }}
{{ $cat->name }}
{{ $_bannerPromoText }}