@php $bride = $invitation->bride ?? [ 'name' => 'Rani Anggraini, S.Pd', 'nickname' => 'Rani', 'parents' => 'Bapak Hartono & Ibu Sulastri', 'photo' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80', 'instagram' => '@ranianggraini', ]; $groom = $invitation->groom ?? [ 'name' => 'Dimas Pratama, S.T', 'nickname' => 'Dimas', 'parents' => 'Bapak Wijaya & Ibu Kartika', 'photo' => 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=600&q=80', 'instagram' => '@dimaspratama', ]; $coverPhoto = $invitation->cover_photo ?? 'https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=800&q=80'; $events = $invitation->events ?? [ [ 'title' => 'Akad Nikah', 'date' => '2026-12-20', 'start_time' => '08:00', 'end_time' => '10:00', 'timezone' => 'WIB', 'venue' => 'Masjid Al-Ikhlas', 'address' => 'Jl. Melati No. 12, Tangerang', 'maps_url' => 'https://maps.google.com', ], [ 'title' => 'Resepsi Pawiwahan', 'date' => '2026-12-20', 'start_time' => '11:00', 'end_time' => '14:00', 'timezone' => 'WIB', 'venue' => 'Gedung Joglo Nusantara', 'address' => 'Jl. Kenanga No. 5, Tangerang', 'maps_url' => 'https://maps.google.com', ], ]; $primaryEvent = $events[0] ?? null; $eventDate = $primaryEvent['date'] ?? '2026-12-20'; $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' => 'Raden Mas Bagus Nugroho', 'name' => 'Raden Mas Bagus Nugroho', ], [ 'bank_name' => 'Bank Mandiri', 'bank' => 'Bank Mandiri', 'account_number' => '9876543210', 'number' => '9876543210', 'account_holder' => 'Raden Ajeng Sekar Arum', 'name' => 'Raden Ajeng Sekar Arum', ], ]; $hasGifts = !empty($gifts) || !empty($invitation->qris_image_url) || !empty($invitation->qris_image); $stories = $invitation->stories ?? [ [ 'year' => '2019', 'title' => 'Pertemuan Pertama', 'story' => 'Kami bertemu di sebuah acara kampus. Awalnya hanya saling sapa, tanpa tahu cerita ini baru dimulai.', ], [ 'year' => '2021', 'title' => 'Mulai Dekat', 'story' => 'Obrolan demi obrolan membuat kami saling mengerti, dan perlahan tumbuh rasa nyaman.', ], [ 'year' => '2025', 'title' => 'Lamaran (Nontoni & Nglamar)', 'story' => 'Dengan restu kedua keluarga, Dimas melamar Rani dalam suasana sederhana yang penuh haru.', ], [ 'year' => '2026', 'title' => 'Dina Pawiwahan', 'story' => 'Dengan niat tulus, kami melangkah ke jenjang pernikahan suci dan memohon doa restu Anda.', ], ]; $defaultQuoteText = 'Mugi Gusti paring berkah ingkang tansah lumintu, ngraketaken katresnan lumantar ikatan suci jejodohan.'; $defaultQuoteSource = 'Serat Tri Ubaya Cattya'; $quoteText = !empty($invitation->quote) ? $invitation->quote : $defaultQuoteText; $quoteSource = !empty($invitation->quote_author) ? $invitation->quote_author : $defaultQuoteSource; $wishes = $invitation->wishes ?? [ (object)[ 'name' => 'Bambang & Keluarga', 'attendance' => 'hadir', 'message' => 'Ndherek bingah kagem Mas Dimas & Mbak Rani. Mugi tansah pinaringan berkah lan langgeng salaminipun.', 'created_at' => now()->subHours(2), ], (object)[ 'name' => 'Keluarga Besar Sastro', 'attendance' => 'hadir', 'message' => 'Sugeng mangun balesigit, mugi sakinah mawaddah warahmah.', 'created_at' => now()->subDay(), ] ]; @endphp Undangan Pernikahan Adat Jawa | {{ $bride['nickname'] ?? 'Rani' }} & {{ $groom['nickname'] ?? 'Dimas' }} @include('templates.partials.preview-banner') @if(isset($isPreview) && $isPreview)
Mode Pratinjau Desain (Preview Mode)
@endif

Sugeng Rawuh

Pawiwahan Adat Jawa

{{ $bride['nickname'] }} & {{ $groom['nickname'] }}

{{ $bride['nickname'] }} & {{ $groom['nickname'] }}

{{ $formattedDate }}

Katur dhumateng Panjenenganipun:
{{ $guestName ?? 'Bapak / Ibu / Sedherek' }}

Sugeng Rawuh

Pawiwahan

{{ $bride['nickname'] }} & {{ $groom['nickname'] }}

{{ $bride['nickname'] }} & {{ $groom['nickname'] }}

{{ $formattedDate }}

Katur dhumateng Panjenenganipun:
{{ $guestName ?? 'Bapak / Ibu / Sedherek' }}

Mriksani Adicara
@if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('countdown'))

Hitung Mundur

Menuju dinten kabingahan kito

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

Assalamu'alaikum Warahmatullahi Wabarakatuh

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

— {{ $quoteSource }}

“Witing tresno jalaran saka kulino.”

@endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('couple'))

Mempelai

Kanthi asmaning Gusti, kami menikah

{{ $groom['name'] }}

{{ $groom['name'] }}

Mempelai Pria

Putra dari:
{{ $groom['parents'] ?? 'Bapak Wijaya & Ibu Kartika' }}

&
{{ $bride['name'] }}

{{ $bride['name'] }}

Mempelai Wanita

Putri dari:
{{ $bride['parents'] ?? 'Bapak Hartono & Ibu Sulastri' }}

@endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('event'))

Adicara Pawiwahan

@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']))
Peta Lokasi
@endif
@endforeach
@endif @if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('story')) @if(!empty($stories) && count($stories) > 0)

Kisah 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)

Tanda Asih

Pandonga lan panyengkuyung panjenengan sedaya dados kanugrahan ingkang luhur tumrap kawula. Menawi kersa paring tanda asih kanthi digital, kasumanggakaken klik tombol ing ngandhap menika:

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

Buku Tamu & Pandonga

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

{{ $w->message }}

@endforeach
@endif @if(!empty($invitation->audio_url)) @endif