@php $bride = $invitation->bride ?? [ 'name' => 'Natasha Wulandari, S.Psi', 'nickname' => 'Natasha', 'father' => 'Bapak Bambang Wiratama', 'mother' => 'Ibu Retno Handayani', 'parents' => 'Bapak Bambang Wiratama & Ibu Retno Handayani', 'instagram' => '@natashawln', 'photo' => 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80', ]; $groom = $invitation->groom ?? [ 'name' => 'Gideon Mahesa, S.Ak', 'nickname' => 'Gideon', 'father' => 'Bapak Hadi Susanto', 'mother' => 'Ibu Maya Anggraini', 'parents' => 'Bapak Hadi Susanto & Ibu Maya Anggraini', 'instagram' => '@gideonmhs', 'photo' => 'https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?auto=format&fit=crop&w=600&q=80', ]; $events = $invitation->events ?? [ [ 'title' => 'Akad Nikah', 'date' => '2026-12-20', 'start_time' => '08:00', 'end_time' => '10:00', 'timezone' => 'WIB', 'venue' => 'Masjid Agung Nurul Huda', 'address' => 'Jl. Melati No. 12, Tangerang', 'maps_url' => 'https://maps.google.com', ], [ 'title' => 'Resepsi', 'date' => '2026-12-20', 'start_time' => '11:00', 'end_time' => '14:00', 'timezone' => 'WIB', 'venue' => 'The Grand Salon Ballroom', 'address' => 'Jl. Anggrek No. 5, Tangerang', 'maps_url' => 'https://maps.google.com', ], ]; $primaryEvent = $events[0] ?? null; $eventDate = $primaryEvent['date'] ?? '2026-12-20'; $carbonDate = \Carbon\Carbon::parse($eventDate); $formattedDate = $carbonDate->locale('id')->isoFormat('D · M · Y'); $formattedDateLong = $carbonDate->locale('id')->isoFormat('dddd, D MMMM Y'); $stories = $invitation->stories ?? [ [ 'year' => '2019', 'title' => 'Pertama Bertemu', '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', 'story' => 'Dengan restu kedua keluarga, Gideon melamar Natasha dalam suasana sederhana yang penuh haru.', ], [ 'year' => '2026', 'title' => 'Hari Bahagia', 'story' => 'Dengan niat tulus, kami melangkah ke jenjang pernikahan dan memohon doa restu Anda.', ], ]; $galleryPhotos = $invitation->gallery_photos ?? [ 'https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=800&q=80', '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', 'https://images.unsplash.com/photo-1465495976277-4387d4b0b4c6?auto=format&fit=crop&w=600&q=80', ]; $rawBankAccounts = !empty($invitation->bank_accounts) ? $invitation->bank_accounts : (!empty($invitation->gifts) ? $invitation->gifts : null); $gifts = !empty($rawBankAccounts) ? $rawBankAccounts : [ [ 'bank_name' => 'Bank BCA', 'account_number' => '1234 5678 90', 'account_holder' => 'Natasha Wulandari', ], [ 'bank_name' => 'Bank Mandiri', 'account_number' => '9876 5432 10', 'account_holder' => 'Gideon Mahesa', ], ]; $hasGifts = !empty($gifts) || !empty($invitation->qris_image_url) || !empty($invitation->qris_image); $wishes = $invitation->wishes ?? [ (object)[ 'name' => 'Keluarga Besar Wiratama & Susanto', 'attendance' => 'Hadir', 'message' => 'Barakallahu lakuma wa baraka alaikuma. Semoga sakinah, mawaddah, warahmah selalu menyertai kalian berdua.', 'created_at' => now()->subHours(2), ], ]; $isDemoMode = request()->routeIs('template.demo*') || request()->is('demo/*') || !empty($invitation->is_demo); $liveUrl = $isDemoMode ? route('template.demo.live', $template->slug ?? 'exclusive14') : (!empty($invitation->slug) ? route('invitation.live', $invitation->slug) : '#'); if ($guestName ?? null) { $liveUrl .= (str_contains($liveUrl, '?') ? '&' : '?') . 'to=' . urlencode($guestName); } $audioUrl = $invitation->audio_url ?? asset('templates/vip/exclusive14/music/wedding-song.mp3'); $rsvpAction = !empty($invitation->slug) ? route('invitation.wish', $invitation->slug) : '#'; @endphp Undangan Pernikahan | {{ $bride['nickname'] ?? 'Natasha' }} & {{ $groom['nickname'] ?? 'Gideon' }} @include('templates.partials.preview-banner')
{{ substr($bride['nickname'] ?? 'N', 0, 1) }}&{{ substr($groom['nickname'] ?? 'G', 0, 1) }}

The Wedding Of

Foto {{ $bride['nickname'] }} dan {{ $groom['nickname'] }}

{{ $bride['nickname'] ?? 'Natasha' }}&{{ $groom['nickname'] ?? 'Gideon' }}

Kepada Yth. {{ $guestName ?? 'Bapak/Ibu/Saudara/i' }} Mohon maaf apabila ada kesalahan penulisan nama dan gelar
Buka Undangan
@if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('countdown'))

Save The Date

Menghitung Hari
00Hari
00Jam
00Menit
00Detik

{{ $formattedDateLong }}

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

Assalamu'alaikum Warahmatullahi Wabarakatuh

“{{ $invitation->quote ?? 'Dan di antara tanda-tanda kekuasaan-Nya ialah Dia menciptakan untukmu pasangan-pasangan dari jenismu sendiri, supaya kamu merasa tenteram kepadanya, dan dijadikan-Nya di antaramu rasa kasih dan sayang.' }}”

{{ $invitation->quote_author ?? 'QS. Ar-Rum : 21' }}

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

Bismillahirrahmanirrahim

Sang Mempelai
{{ $bride['name'] }}

{{ $bride['name'] ?? 'Natasha Wulandari, S.Psi' }}

Mempelai Wanita

Putri dari
{{ $bride['parents'] ?? (($bride['father'] ?? 'Bapak Bambang Wiratama') . ' & ' . ($bride['mother'] ?? 'Ibu Retno Handayani')) }}

@if(!empty($bride['instagram']))

{{ $bride['instagram'] }}

@endif
{{ $groom['name'] }}

{{ $groom['name'] ?? 'Gideon Mahesa, S.Ak' }}

Mempelai Pria

Putra dari
{{ $groom['parents'] ?? (($groom['father'] ?? 'Bapak Hadi Susanto') . ' & ' . ($groom['mother'] ?? 'Ibu Maya Anggraini')) }}

@if(!empty($groom['instagram']))

{{ $groom['instagram'] }}

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

Rangkaian Acara

Jadwal Acara
@foreach($events as $event)
{{ \Carbon\Carbon::parse($event['date'] ?? '2026-12-20')->format('d') }}

{{ $event['title'] }}

{{ $event['start_time'] ?? '08.00' }} – {{ $event['end_time'] ?? '10.00' }} {{ $event['timezone'] ?? 'WIB' }}

{{ $event['venue'] ?? 'Masjid Agung' }}
{{ $event['address'] ?? 'Tangerang' }}

@endforeach
@if(!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('streaming'))
LIVE

Live Streaming

Tidak bisa hadir? Saksikan acara kami secara langsung dari mana saja.

Tonton Live
@endif
@endif @if((!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('story')) && !empty($stories) && count($stories) > 0)

Our Story

Kisah Cinta
@php $romanNumerals = ['I', 'II', 'III', 'IV', 'V', 'VI']; @endphp @foreach($stories as $idx => $story)
{{ $romanNumerals[$idx % count($romanNumerals)] }}
{{ $story['year'] }}

{{ $story['title'] }}

{{ $story['story'] }}

@endforeach
@endif @if((!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('gallery')) && !empty($galleryPhotos) && count($galleryPhotos) > 0)

Moments

Galeri Foto

Sentuh foto untuk memperbesar tampilan.

@endif @if((!method_exists($invitation, 'isSectionVisible') || $invitation->isSectionVisible('gift')) && $hasGifts)

Wedding Gift

Tanda Kasih

Doa restu Anda adalah hadiah terindah bagi kami. Bila berkenan memberi tanda kasih, dapat melalui:

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

Konfirmasi

RSVP & Ucapan
RSVP
@if(session('wish_success'))
{{ session('wish_success') }}
@endif @if(session('wish_error'))
{{ session('wish_error') }}
@endif
@csrf
Kehadiran
@foreach($wishes as $w)
{{ $w->name }} {{ ucfirst($w->attendance ?? 'Hadir') }}

{{ $w->message }}

@endforeach
@endif
Nomor rekening berhasil disalin!