@extends('layouts.customer') @section('title', $title) @section('meta_description', $metaDescription) @section('body_class', 'page-home') @section('content') {{-- ===== 1. HERO BANNER ===== --}} @if ($hero) {!! $heroLang->tagline ?? '' !!} {!! $heroLang->deskripsi ?? '' !!} @foreach ($heroCtas as $cta) @php $rawLink = $cta->link ?: '#'; $isNewTab = !empty($cta->is_new_tab); $href = \Illuminate\Support\Str::startsWith($rawLink, ['http://', 'https://', '#', 'mailto:', 'tel:']) ? $rawLink : url($rawLink); @endphp {{ $cta->text }} @endforeach @foreach ($heroKeywords as $kw) {{ $kw->text }} @endforeach @endif {{-- ===== 2. KATEGORI ===== --}} @if ($kategoris->isNotEmpty()) @foreach ($kategoris as $kat) {{ $kat->nama }} {{ strip_tags($kat->deskripsi) }} {{ __('nav.lihat_produk') }} @endforeach @endif {{-- ===== 3. PRODUK UNGGULAN ===== --}} @if ($produkUnggulan->isNotEmpty()) {{ __('nav.produk_unggulan') }} @foreach ($produkUnggulan as $produk) @endforeach {{ __('nav.semua_produk') ?? 'Semua Produk' }} @endif {{-- ===== 4. WHY US ===== --}} @if ($whyus) {{ $whyusLang->judul ?? '' }} {!! $whyusLang->deskripsi ?? '' !!} @if ($whyus->gambar) @endif @endif {{-- ===== 5. GALERI ===== --}} @if ($galeri->isNotEmpty()) @foreach ($galeri as $foto) @if ($foto->gambar) @endif @endforeach @endif {{-- ===== 6. SPOTLIGHT ===== --}} @if ($spotlight) {{ $spotlightLang->judul ?? '' }} {!! $spotlightLang->deskripsi ?? '' !!} @if ($spotlightLang && $spotlightLang->cta_text) @php $spotlightLink = $spotlight->cta_link ?: '#'; $spotlightIsNewTab = !empty($spotlight->is_new_tab); $spotlightHref = \Illuminate\Support\Str::startsWith($spotlightLink, ['http://', 'https://', '#', 'mailto:', 'tel:']) ? $spotlightLink : url($spotlightLink); @endphp {{ $spotlightLang->cta_text }} @endif @if ($spotlight->gambar) @endif @endif {{-- ===== 7. MARKETPLACE ===== --}} @if ($marketplace->isNotEmpty()) {{ __('nav.marketplace') }} {{ __('nav.kunjungi_marketplace') }} @foreach ($marketplace as $mp) @if ($mp->logo) @endif {{ $mp->nama_platform }} @endforeach @endif {{-- ===== 8. TESTIMONI ===== --}} @if ($testimoni->isNotEmpty()) {{ __('nav.testimoni') ?? 'Bagaimana Pendapat Mereka:' }} @foreach ($testimoni as $t) “{!! Str::limit(strip_tags($t->kutipan), 60) !!}” @if (strlen(strip_tags($t->kutipan)) > 60) Baca Selengkapnya @else @endif @if ($t->foto) @else @endif {{ $t->nama_author }} {{ $t->jabatan }} {{-- Modal isi lengkap --}} {{ $t->nama_author }} {!! $t->kutipan !!} @if ($t->foto) @else @endif {{ $t->nama_author }} {{ $t->jabatan }} @endforeach @endif @endsection @section('meta_extra') {{-- Data kontak untuk popup floating (dipakai layout customer) --}} @endsection @push('js') @endpush
{{ strip_tags($kat->deskripsi) }}
{{ __('nav.produk_unggulan') }}
{{ __('nav.kunjungi_marketplace') }}
{{ $mp->nama_platform }}
“{!! Str::limit(strip_tags($t->kutipan), 60) !!}”
{{ $t->nama_author }}
{{ $t->jabatan }}