@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
Walimatul 'Ursy • Adat Betawi
Kepada Yth. Bapak/Ibu/Saudara/i:
Bismillahirrohmanirrohim
{{ $formattedDate }}
Menghitung Hari Menuju Akad & Resepsi
“{!! nl2br(e($quoteText)) !!}”
Pengantin Pria
Putra tercinta dari pasangan:
{{ $groom['parents'] ?? 'Bapak H. Syamsudin & Ibu Hj. Halimah' }}
Pengantin Wanita
Putri tercinta dari pasangan:
{{ $bride['parents'] ?? 'Bapak H. Ahmad Dahlan & Ibu Hj. Aminah' }}
{{ \Carbon\Carbon::parse($event['date'])->locale('id')->isoFormat('dddd, D MMMM Y') }}
{{ $event['venue'] }}
{{ $event['address'] }}
{{ $st['story'] ?? ($st['description'] ?? '') }}
Doa restu Anda merupakan karunia terindah bagi kami. Namun jika hendak memberikan tanda kasih, silakan klik tombol di bawah ini:
{{ $gift['account_number'] ?? $gift['number'] ?? '-' }}
a.n. {{ $gift['account_holder'] ?? $gift['name'] ?? '-' }}
a.n. {{ $invitation->groom_nickname ?? $invitation->groom_name ?? 'Mempelai' }} & {{ $invitation->bride_nickname ?? $invitation->bride_name ?? 'Mempelai' }}
{{ $w->message }}