@php $bride = $invitation->bride ?? [ 'name' => 'Siti Nurbaya Azzahra, S.I.Kom', 'nickname' => 'Siti', 'parents' => 'Bapak H. Ahmad Dahlan & Ibu Hj. Aminah', 'photo' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80', 'instagram' => '@sitinurbaya', ]; $groom = $invitation->groom ?? [ 'name' => 'M. Firman Pratama, S.T.', 'nickname' => 'Firman', 'parents' => 'Bapak H. Syamsudin & Ibu Hj. Halimah', 'photo' => 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=600&q=80', 'instagram' => '@firmanpratama', ]; $coverPhoto = $invitation->cover_photo ?? 'https://images.unsplash.com/photo-1544005313-94ddf0286df2?auto=format&fit=crop&w=800&q=80'; $events = $invitation->events ?? [ [ 'title' => 'Akad Nikah', 'date' => '2026-10-18', 'start_time' => '08:00', 'end_time' => '09:30', 'timezone' => 'WIB', 'venue' => 'Masjid Raya Al-Mashun Rawabelong', 'address' => 'Jl. Rawabelong No. 12, Jakarta Barat', 'maps_url' => 'https://maps.google.com', ], [ 'title' => 'Prosesi Palang Pintu & Buka Tabir', 'date' => '2026-10-18', 'start_time' => '10:00', 'end_time' => '11:00', 'timezone' => 'WIB', 'venue' => 'Gedung Pusat Kebudayaan Betawi', 'address' => 'Jl. Kebudayaan Betawi No. 8, Jakarta Pusat', 'maps_url' => 'https://maps.google.com', ], [ 'title' => 'Resepsi Pernikahan', 'date' => '2026-10-18', 'start_time' => '11:30', 'end_time' => '15:00', 'timezone' => 'WIB', 'venue' => 'Gedung Pusat Kebudayaan Betawi', 'address' => 'Jl. Kebudayaan Betawi No. 8, Jakarta Pusat', 'maps_url' => 'https://maps.google.com', ], ]; $primaryEvent = $events[0] ?? null; $eventDate = $primaryEvent['date'] ?? '2026-10-18'; $eventTime = $primaryEvent['start_time'] ?? '08:00'; $carbonDate = \Carbon\Carbon::parse($eventDate); $formattedDate = $carbonDate->locale('id')->isoFormat('dddd, D MMMM Y'); $galleries = $invitation->gallery ?? [ 'https://images.unsplash.com/photo-1583939003579-730e3918a45a?auto=format&fit=crop&w=600&q=80', 'https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=600&q=80', 'https://images.unsplash.com/photo-1522673607200-164d1b6ce486?auto=format&fit=crop&w=600&q=80', 'https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=600&q=80', ]; $rawBankAccounts = !empty($invitation->bank_accounts) ? $invitation->bank_accounts : (!empty($invitation->gifts) ? $invitation->gifts : null); if (empty($rawBankAccounts) && !empty($invitation->bank_name)) { $rawBankAccounts = [ [ 'bank_name' => $invitation->bank_name, 'bank' => $invitation->bank_name, 'account_number' => $invitation->bank_account ?? '', 'number' => $invitation->bank_account ?? '', 'account_holder' => $invitation->bank_holder ?? 'Mempelai', 'name' => $invitation->bank_holder ?? 'Mempelai', ] ]; } $gifts = !empty($rawBankAccounts) ? $rawBankAccounts : [ [ 'bank_name' => 'Bank BCA', 'bank' => 'Bank BCA', 'account_number' => '1234567890', 'number' => '1234567890', 'account_holder' => 'Zaenab binti H. Sabeni', 'name' => 'Zaenab binti H. Sabeni', ], [ 'bank_name' => 'Bank Mandiri', 'bank' => 'Bank Mandiri', 'account_number' => '9876543210', 'number' => '9876543210', 'account_holder' => 'Baihaki bin H. Rohim', 'name' => 'Baihaki bin H. Rohim', ], ]; $hasGifts = !empty($gifts) || !empty($invitation->qris_image_url) || !empty($invitation->qris_image); $stories = $invitation->stories ?? [ [ 'year' => '2020', 'title' => 'Pertama Jumpa', 'story' => 'Ketemu waktu perhelatan festival seni budaya Betawi. Berawal dari sapaan hangat, berlanjut ke pertemanan akrab.', ], [ 'year' => '2022', 'title' => 'Mulai Nyambung', 'story' => 'Dari ngobrol santai seputar kuliner kerak telor sampe obrolan serius tentang cita-cita masa depan.', ], [ 'year' => '2025', 'title' => 'Lamaran Bawa Roti Buaya', 'story' => 'Abang Firman bersama keluarga datang membawa hantaran khas dan roti buaya sebagai tanda kesetiaan sejati.', ], [ 'year' => '2026', 'title' => 'Hari Walimah', 'story' => 'Insya Allah melangkah bersama di pelaminan adat Betawi, memohon berkah dan doa restu para tetua dan kerabat.', ], ]; $defaultQuoteText = 'Dan di antara tanda-tanda (kebesaran)-Nya ialah Dia menciptakan pasangan-pasangan untukmu dari jenismu sendiri, agar kamu cenderung dan merasa tenteram kepadanya, dan Dia menjadikan di antaramu rasa kasih dan sayang.'; $defaultQuoteSource = 'QS. Ar-Rum: 21'; $quoteText = !empty($invitation->quote) ? $invitation->quote : $defaultQuoteText; $quoteSource = !empty($invitation->quote_author) ? $invitation->quote_author : $defaultQuoteSource; $wishes = $invitation->wishes ?? [ (object)[ 'name' => 'Kong Haji Udin & Keluarga', 'attendance' => 'hadir', 'message' => 'Alhamdulillah, selamat buat Firman dan Siti. Moga langgeng sampe kakek nenek, sakinah mawaddah warahmah!', 'created_at' => now()->subHours(2), ], (object)[ 'name' => 'Keluarga Besar Rawabelong', 'attendance' => 'hadir', 'message' => 'Lancar-lancar sampai hari H ya Abang & None. Rukun terus selamanya!', 'created_at' => now()->subDay(), ] ]; @endphp The Wedding of {{ $groom['nickname'] ?? 'Firman' }} & {{ $bride['nickname'] ?? 'Siti' }} - Adat Tradisional Betawi @include('templates.partials.preview-banner') @if(isset($isPreview) && $isPreview)
Mode Pratinjau Desain (Preview Mode)
@endif

Walimatul 'Ursy • Adat Betawi

{{ $groom['nickname'] ?? 'Firman' }} & {{ $bride['nickname'] ?? 'Siti' }}

Kepada Yth. Bapak/Ibu/Saudara/i:

{{ $guestName ?? 'Tamu Undangan' }}

@if(!empty($invitation->audio_url)) @endif
Undangan Pernikahan Adat Betawi

Bismillahirrohmanirrohim

{{ $groom['nickname'] ?? 'Firman' }} & {{ $bride['nickname'] ?? 'Siti' }}

{{ $formattedDate }}

{{ $groom['nickname'] }} & {{ $bride['nickname'] }}
@if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('countdown'))

Menghitung Hari Menuju Akad & Resepsi

00 Hari
00 Jam
00 Menit
00 Detik
@if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('quote'))

“{!! nl2br(e($quoteText)) !!}”

— {{ $quoteSource }} —
@endif @endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('couple'))
Pengantin Adat Betawi

Kedua Mempelai

{{ $groom['name'] }}
Abang

{{ $groom['name'] }}

Pengantin Pria

Putra tercinta dari pasangan:
{{ $groom['parents'] ?? 'Bapak H. Syamsudin & Ibu Hj. Halimah' }}

@if(!empty($groom['instagram'])) {{ $groom['instagram'] }} @endif
{{ $bride['name'] }}
None

{{ $bride['name'] }}

Pengantin Wanita

Putri tercinta dari pasangan:
{{ $bride['parents'] ?? 'Bapak H. Ahmad Dahlan & Ibu Hj. Aminah' }}

@if(!empty($bride['instagram'])) {{ $bride['instagram'] }} @endif
@endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('event'))
Rangkaian Acara

Waktu & Lokasi Acara

@foreach($events as $event)

{{ $event['title'] }}

{{ \Carbon\Carbon::parse($event['date'])->locale('id')->isoFormat('dddd, D MMMM Y') }}

{{ $event['start_time'] ?? '08:00' }} - {{ $event['end_time'] ?? 'Selesai' }} {{ $event['timezone'] ?? 'WIB' }}

{{ $event['venue'] }}
{{ $event['address'] }}

@if(!empty($event['maps_url'])) @endif
@endforeach
@endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('story')) @if(!empty($stories) && count($stories) > 0)
Kisah Kami

Perjalanan Cinta

@foreach($stories as $st)
{{ $st['year'] ?? '' }}

{{ $st['title'] ?? '' }}

{{ $st['story'] ?? ($st['description'] ?? '') }}

@endforeach
@endif @endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('gallery')) @if(!empty($galleries) && count($galleries) > 0) @endif @endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('gift')) @if($hasGifts)
Kado Digital

Tanda Kasih

Doa restu Anda merupakan karunia terindah bagi kami. Namun jika hendak memberikan tanda kasih, silakan klik tombol di bawah ini:

@endif @endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('wishes'))
Buku Tamu

Konfirmasi & Doa Restu

@csrf

Doa & Ucapan Kerabat

@foreach($wishes as $w)
{{ $w->name }} {{ ucfirst($w->attendance ?? 'hadir') }}

{{ $w->message }}

@endforeach
@endif