@extends('layouts.app') @section('content') @php $contactGlobal = \App\Models\Contact::first(); $waNumberGlobal = preg_replace('/[^0-9]/', '', $contactGlobal->whatsapp_number ?? '6281234567890'); if (str_starts_with($waNumberGlobal, '0')) { $waNumberGlobal = '62' . substr($waNumberGlobal, 1); } @endphp
Toko Roti Modern

{{ $hero->title ?? 'Toko Roti Terbaik' }}
{{ $hero->subtitle ?? 'Segar & Lezat' }}

{{ $hero->description ?? 'Nikmati berbagai macam roti dan kue segar buatan tangan. Pesan online dengan mudah dan cepat.' }}

{{ $hero->button_text ?? 'Lihat Produk' }}
Strawberry Strawberry Cake
`
Pilih Kategori

Kategori Produk

Pilih kategori untuk melihat produk yang Anda inginkan.

@forelse($categories as $category) @empty

No categories found

@endforelse
Menu Kami

Produk Terbaik

Dibuat segar setiap hari. Klik produk untuk melihat detail dan memesan.

@forelse($allProducts as $product) @empty

No products found

@endforelse
@php $iconMap = [ 'bahan' => 'bi-basket2', 'segar' => 'bi-flower1', 'fresh' => 'bi-flower1', 'handmade' => 'bi-hand-thumbs-up', 'tangan' => 'bi-hand-thumbs-up', 'buatan' => 'bi-hand-thumbs-up', 'kualitas' => 'bi-patch-check', 'quality' => 'bi-patch-check', 'halal' => 'bi-check2-circle', 'higienis' => 'bi-shield-check', 'sehat' => 'bi-heart-pulse', 'cepat' => 'bi-lightning-charge', 'antar' => 'bi-truck', 'kirim' => 'bi-truck', 'harga' => 'bi-tag', 'murah' => 'bi-tag', 'varian' => 'bi-grid-3x3-gap', 'lengkap' => 'bi-grid-3x3-gap', 'rasa' => 'bi-emoji-smile', 'enak' => 'bi-emoji-smile', 'cinta' => 'bi-heart', 'love' => 'bi-heart', 'lokasi' => 'bi-geo-alt', 'toko' => 'bi-shop', 'modern' => 'bi-phone', 'tampilan' => 'bi-phone', 'mudah' => 'bi-hand-index-thumb', ]; $resolveIcon = function ($title) use ($iconMap) { $t = strtolower($title ?? ''); foreach ($iconMap as $keyword => $icon) { if (str_contains($t, $keyword)) return 'bi ' . $icon; } return 'bi bi-star'; }; @endphp
Tentang Toko
Tentang Kami

{{ $about->title ?? 'Tentang Herlina Cookies & Cakes' }}

{{ $about->description ?? 'Herlina Cookies & Cakes adalah toko roti modern yang menyediakan produk segar buatan tangan. Kami fokus pada kualitas bahan dan rasa yang autentik.' }}

@forelse($features as $feature)
{{ $feature->title }}
@empty

No features found

@endforelse
@php $contact = \App\Models\Contact::first(); $businessHours = \App\Models\BusinessHour::orderBy('order')->get(); @endphp
Hubungi Kami

Kontak & Lokasi

Kami siap membantu pesanan dan pertanyaan Anda setiap hari.

Jam Operasi

@forelse($businessHours as $hour)
{{ $hour->day }} {{ $hour->open_time }} - {{ $hour->close_time }}
@empty
Senin - Jumat 08:00 - 20:00
Sabtu - Minggu 08:00 - 22:00
@endforelse

Kami buka setiap hari termasuk hari libur

Pesan via WhatsApp

Langsung chat kami untuk pemesanan atau konsultasi produk.

Nomor WhatsApp

{{ $contact->whatsapp_number ?? '+62 812 3456 7890' }}

@php $waNumber = preg_replace('/[^0-9]/', '', $contact->whatsapp_number ?? '6281234567890'); if (str_starts_with($waNumber, '0')) { $waNumber = '62' . substr($waNumber, 1); } $rawMessage = $contact->whatsapp_message ?? 'Halo, saya mau tanya tentang produk dan pesanan'; $waMessage = urlencode($rawMessage); @endphp Pesan Sekarang

Lokasi Toko

Kunjungi toko kami di alamat berikut:

{{ $contact->address ?? 'Jl. Raya Bandung No. 123, Bandung, Jawa Barat' }}

@if(!empty($contact->maps_embed)) @else @endif
{{ $contact->delivery_info ?? 'Gratis ongkir area Bandung' }} {{ $contact->parking_info ?? 'Parkir luas' }}
@endsection