@php $settings = \App\Models\Setting::all()->pluck('value', 'key'); // Background Gradient $bgColor1 = $settings['digi-modern_hero_bg_color1'] ?? $settings['hero_bg_color1'] ?? '#0f172a'; $bgColor2 = $settings['digi-modern_hero_bg_color2'] ?? $settings['hero_bg_color2'] ?? '#020617'; $bgAngle = $settings['digi-modern_hero_bg_angle'] ?? $settings['hero_bg_angle'] ?? '135'; $heroGradient = "linear-gradient({$bgAngle}deg, {$bgColor1} 0%, {$bgColor2} 100%)"; // Headings & Copy $heroEyebrow = $settings['hero_eyebrow'] ?? 'New Update • Version 2.0 Sales Engine'; $heroHeadline1 = $settings['hero_headline_1'] ?? 'Cari Produk'; $heroHeadline2 = $settings['hero_headline_2'] ?? 'Digital Terbaik Kamu.'; $heroTagline = $settings['hero_tagline'] ?? 'Akses instan ke seluruh produk digital dari template hingga akun premium langsung dari dashboard secara otomatis.'; // Parse Eyebrow for dual-tag layout $eyebrowParts = explode(' • ', $heroEyebrow); if (count($eyebrowParts) < 2) { $eyebrowParts = explode(' | ', $heroEyebrow); } if (count($eyebrowParts) < 2) { $eyebrowParts = explode(' - ', $heroEyebrow); } if (count($eyebrowParts) < 2) { $eyebrowParts = ['New Update', $heroEyebrow ?: 'Version 2.0 Sales Engine']; } // Floating Badges $heroBadge1 = $settings['hero_badge1'] ?: '⚡ Digital Assets'; $heroBadge2 = $settings['hero_badge2'] ?: '🔑 Akun Premium'; $heroBadge3 = $settings['hero_badge3'] ?: '🚀 Akses Instan'; // Dynamic Hero Image Loading $heroImg = $settings['digi-modern_hero_image'] ?? $settings['hero_image'] ?? null; $heroImgUrl = $heroImg ? Storage::url($heroImg) : asset('themes/default/img/hero-mockup.png'); $categories = \App\Models\Category::where('is_active', true)->withCount('products')->get(); $products = \App\Models\Product::where('is_active', true)->latest()->paginate(8); $testimonials = \App\Models\Testimonial::latest()->take(6)->get(); @endphp @php $siteName = $settings['store_name'] ?? config('app.name', 'DigiShop'); $siteDesc = $settings['store_description'] ?? 'Marketplace produk digital terbaik.'; @endphp @section('title', $siteName . ' - ' . $siteDesc) @section('schema') @endsection
{{ $eyebrowParts[0] }} {{ $eyebrowParts[1] }}

{{ $heroHeadline1 }}
{{ $heroHeadline2 }}

{{ $heroTagline }}

Trending: @foreach($categories->take(4) as $cat) #{{ $cat->name }} @endforeach
Akses Instan Unduh File Langsung
Garansi Aman 100% Produk Legal
Free Updates Versi Baru Selamanya
Bantuan Support Full WA Konsultasi
{{-- ============================================================ --}} {{-- E-COURSE & RECOMMENDATION SECTION --}} {{-- ============================================================ --}} @php $ecourseVisible = \App\Models\Setting::where('key', 'ecourse_is_visible')->value('value'); $ecourseVisible = $ecourseVisible === null ? '1' : $ecourseVisible; @endphp @if($ecourseVisible == '1')
{{-- KIRI: E-Course Slider (Lebar: 3 Kolom) --}}
@php $ecourseTitle = \App\Models\Setting::where('key', 'ecourse_title')->value('value') ?: 'Koleksi E-Course'; $ecourseSubtitle = \App\Models\Setting::where('key', 'ecourse_subtitle')->value('value') ?: 'Tingkatkan skill Anda dengan kursus pilihan kami.'; @endphp

E-Learning Class

{{ $ecourseTitle }}

{{ $ecourseSubtitle }}

{{-- Horizontal scrollable container --}}
@forelse($eCourseProducts ?? [] as $product)
{{-- Card Produk Flat Premium (5px radius) --}}
@if($loop->index % 3 == 0)
Promo
@endif @if($product->thumbnail) {{ $product->name }} @else
@endif

@if($product->category) {{ $product->category->name }} @else E-Course @endif

{{ $product->name }}

4.9
• 120+ Terjual

{{ strip_tags($product->description ?: 'Dapatkan materi e-course premium terbaik untuk meningkatkan keahlian Anda sekarang.') }}

Harga Rp {{ number_format($product->price, 0, ',', '.') }}
Detail
@empty

Belum ada produk E-Course yang tersedia saat ini.

@endforelse
{{-- KANAN: Special Affiliate Banner (Sidebar 1 Kolom) --}}
@php $recTitle = \App\Models\Setting::where('key', 'recommendation_title')->value('value') ?: 'Rekomendasi'; $recSubtitle = \App\Models\Setting::where('key', 'recommendation_subtitle')->value('value') ?: 'Pilihan partner terbaik.'; $affBanner = \App\Models\Setting::where('key', 'affiliate_banner')->value('value'); $affBadge = \App\Models\Setting::where('key', 'affiliate_badge')->value('value') ?: 'Spesial Affiliate'; $affTitle = \App\Models\Setting::where('key', 'affiliate_title')->value('value') ?: 'Ultimate
Design Bundle'; $affSubtitle = \App\Models\Setting::where('key', 'affiliate_subtitle')->value('value') ?: 'Dapatkan ribuan aset desain premium dengan harga spesial!'; $affLink = \App\Models\Setting::where('key', 'affiliate_link')->value('value') ?: '#'; $affBtn = \App\Models\Setting::where('key', 'affiliate_button')->value('value') ?: 'Beli Sekarang'; @endphp
@endif

Catalog Showcase

Semua Koleksi Terpopuler

Menampilkan {{ $products->count() }} Produk
@foreach($products as $product)
@if($loop->index % 3 == 0)
Promo
@endif @if($product->thumbnail) {{ $product->name }} @else
@endif

@if($product->category) {{ $product->category->name }} @else Digital @endif

{{ $product->name }}

4.9
• 120+ Terjual

{{ strip_tags($product->description ?: 'Dapatkan produk digital premium terbaik untuk menunjang bisnis dan kreativitas Anda sekarang.') }}

Harga Rp {{ number_format($product->price, 0, ',', '.') }}
Detail
@endforeach
{{ $products->withQueryString()->fragment('catalog')->links() }}
{{-- ============================================================ --}} {{-- TESTIMONIAL SECTION --}} {{-- ============================================================ --}} @php $testimonialVisible = \App\Models\Setting::where('key', 'testimonial_is_visible')->value('value'); $testimonialVisible = $testimonialVisible === null ? '1' : $testimonialVisible; @endphp @if($testimonialVisible == '1' && $testimonials->isNotEmpty()) @php $testiEyebrow = \App\Models\Setting::where('key', 'testimonial_eyebrow')->value('value') ?: 'Ulasan Pelanggan'; $testiTitle = \App\Models\Setting::where('key', 'testimonial_title')->value('value') ?: 'Apa Kata Mereka?'; $testiSubtitle = \App\Models\Setting::where('key', 'testimonial_subtitle')->value('value') ?: 'Ribuan pelanggan telah merasakan manfaat produk digital kami. Bergabunglah sekarang!'; @endphp

{{ $testiEyebrow }}

{{ $testiTitle }}

{{ $testiSubtitle }}

{{-- Auto-scroll testimonial marquee --}} @php $displayTestis = $testimonials->count() < 4 ? $testimonials->concat($testimonials)->concat($testimonials) : $testimonials->concat($testimonials); @endphp
{{-- Left/Right fade edges --}}
@foreach($displayTestis as $testi)
{{-- Header --}}
@if($testi->avatar) {{ $testi->name }} @else
{{ strtoupper(substr($testi->name, 0, 1)) }}
@endif
{{ $testi->name }}
@for($i = 1; $i <= 5; $i++) @endfor
Verified
{{-- Quote --}}

{{ $testi->message ?? $testi->content }}

{{ $testi->profession ?? 'Member' }} @if($testi->product)
{{ $testi->product->name }}
@endif
@endforeach
@endif {{-- ============================================================ --}} {{-- FREE GIFT SECTION --}} {{-- ============================================================ --}} @php $freeGiftVisible = \App\Models\Setting::where('key', 'free_gift_is_visible')->value('value'); $freeGiftVisible = $freeGiftVisible === null ? '1' : $freeGiftVisible; @endphp @if($freeGiftVisible == '1')
{{-- KIRI: Violet/Indigo — Teks Promo --}} @php $fgHeadline = \App\Models\Setting::where('key', 'free_gift_headline')->value('value') ?: "Dapatkan Free Gift
\nEksklusif, secara gratis.!!"; $fgDesc = \App\Models\Setting::where('key', 'free_gift_description')->value('value') ?: 'Daftarkan nama & email Anda sekarang dan kami kirimkan gift spesial senilai ratusan ribu secara gratis!'; $fgSuccessTitle = \App\Models\Setting::where('key', 'free_gift_success_title')->value('value') ?: 'Yeay, Berhasil! 🎉'; $fgSuccessDesc = \App\Models\Setting::where('key', 'free_gift_success_desc')->value('value') ?: 'Cek inbox email Anda. Gift eksklusif sudah kami kirimkan!'; $fgBtnText = \App\Models\Setting::where('key', 'free_gift_button_text')->value('value') ?: 'Kirim Gift ke Email Saya'; $fgPrivacyText = \App\Models\Setting::where('key', 'free_gift_privacy_text')->value('value') ?: 'Kami menghormati privasi Anda. Tidak ada spam, selamanya.'; @endphp
{{-- Dekorasi latar minimalis --}}

{!! $fgHeadline !!}

{!! $fgDesc !!}

{{-- KANAN: Putih — Form --}}
{{-- Success State --}} {{-- Form --}}

{{ $fgPrivacyText }}

@endif