@php $bride = $invitation->bride ?? [ 'name' => 'Aisyah Nur Azizah, S.Pd', 'nickname' => 'Aisyah', 'parents' => 'Bapak H. Ahmad Fauzi & Ibu Hj. Siti Rohmah', 'photo' => $invitation->bride_photo_url ?? ($invitation->bride_photo ?? 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&w=600&q=80'), 'instagram' => $invitation->bride_instagram ?? '@aisyahazizah', ]; $groom = $invitation->groom ?? [ 'name' => 'Muhammad Faris Hidayat, S.T', 'nickname' => 'Faris', 'parents' => 'Bapak H. Abdul Rahman & Ibu Hj. Nurul Hidayah', 'photo' => $invitation->groom_photo_url ?? ($invitation->groom_photo ?? 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?auto=format&fit=crop&w=600&q=80'), 'instagram' => $invitation->groom_instagram ?? '@farishidayat', ]; $coverPhoto = $invitation->cover_photo ?? ($invitation->hero_photo_url ?? 'https://images.unsplash.com/photo-1583939003579-730e3918a45a?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 Agung Al-Barkah', 'address' => 'Jl. Veteran No. 18, Bekasi', 'maps_url' => 'https://maps.google.com', ], [ 'title' => 'Resepsi Pernikahan', 'date' => '2026-12-20', 'start_time' => '11:00', 'end_time' => '14:00', 'timezone' => 'WIB', 'venue' => 'Grand Grandeur Ballroom', 'address' => 'Jl. Ahmad Yani No. 5, Bekasi', '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 ?? ($invitation->gallery_photos ?? [ 'https://images.unsplash.com/photo-1583939003579-730e3918a45a?auto=format&fit=crop&w=600&q=80', 'https://images.unsplash.com/photo-1519741497674-611481863552?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); 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' => '1234 5678 90', 'number' => '1234 5678 90', 'account_holder' => 'Aisyah Nur Azizah', 'name' => 'Aisyah Nur Azizah', ], [ 'bank_name' => 'Bank Syariah Indonesia (BSI)', 'bank' => 'Bank Syariah Indonesia (BSI)', 'account_number' => '9876 5432 10', 'number' => '9876 5432 10', 'account_holder' => 'Muhammad Faris Hidayat', 'name' => 'Muhammad Faris Hidayat', ], ]; $hasGifts = !empty($gifts) || !empty($invitation->qris_image_url) || !empty($invitation->qris_image); $stories = $invitation->stories ?? [ [ 'year' => '2019', 'title' => 'Pertemuan Pertama', 'story' => 'Sebuah pertemuan sederhana di masa kuliah yang membuka pintu perkenalan kami berdua.', ], [ 'year' => '2021', 'title' => 'Saling Mengenal & Ta\'aruf', 'story' => 'Dengan niat yang tulus dan arahan keluarga, kami mulai saling memahami karakter dan visi hidup.', ], [ 'year' => '2023', 'title' => 'Menjaga Komitmen & Doa', 'story' => 'Di tengah kesibukan karier, kami senantiasa saling mendoakan dan memantapkan komitmen bersama.', ], [ 'year' => '2025', 'title' => 'Lamaran & Restu Keluarga', 'story' => 'Keluarga besar berkumpul dalam suasana hangat dan khidmat untuk merestui langkah suci kami.', ], [ 'year' => '2026', 'title' => 'Menuju Hari Bahagia', 'story' => 'Dengan penuh rasa syukur dan cinta, kami melangkah menuju ikatan suci pernikahan.', ], ]; $defaultQuoteArabic = 'وَمِنْ آيَاتِهِ أَنْ خَلَقَ لَكُم مِّنْ أَنفُسِكُمْ أَزْوَاجًا لِّتَسْكُنُوا إِلَيْهَا وَجَعELَ بَيْنَكُم مَّوَدَّةً وَرَحْمَةً ۚ إِنَّ فِي ذَٰلِكَ لَآيَاتٍ لِّقَوْمٍ يَتَفَكَّرُونَ'; $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. Sungguh, pada yang demikian itu benar-benar terdapat tanda-tanda bagi kaum yang berpikir.'; $defaultQuoteSource = 'QS. Ar-Rum : 21'; $quoteArabic = !empty($invitation->quote_arabic) ? $invitation->quote_arabic : $defaultQuoteArabic; $quoteText = !empty($invitation->quote) ? $invitation->quote : $defaultQuoteText; $quoteSource = !empty($invitation->quote_author) ? $invitation->quote_author : $defaultQuoteSource; $wishes = $invitation->wishes ?? [ (object)[ 'name' => 'Keluarga Besar', 'attendance' => 'Hadir', 'message' => 'Barakallahu lakuma wa baraka alaikuma wa jama\'a bainakuma fii khoir. Selamat menempuh hidup baru!', 'created_at' => now()->subHours(2), ], (object)[ 'name' => 'Rekan Kerja & Sahabat', 'attendance' => 'Hadir', 'message' => 'Selamat untuk Faris & Aisyah! Semoga menjadi keluarga yang sakinah, mawaddah, dan warahmah.', 'created_at' => now()->subDay(), ] ]; $bgImage = asset('templates/elegant/arch-floral/images/arch-background.jpg'); $isDemoMode = request()->routeIs('template.demo*') || request()->is('demo/*') || !empty($invitation->is_demo); @endphp
“{{ $quoteText }}”
— {{ $quoteSource }} —{{ $st['story'] ?? ($st['description'] ?? '') }}
Doa restu Anda merupakan karunia terindah bagi kami. Namun apabila Anda berkenan memberikan tanda kasih:
{{ $invitation->address }}
Bagi keluarga dan sahabat yang berhalangan hadir secara langsung, silakan bergabung melalui kanal streaming berikut:
@php $streamUrl = $invitation->streaming_url ?? 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'; $ytEmbed = null; if (str_contains($streamUrl, 'watch?v=')) { $ytEmbed = str_replace('watch?v=', 'embed/', $streamUrl); } elseif (str_contains($streamUrl, 'youtu.be/')) { $ytEmbed = str_replace('youtu.be/', 'www.youtube.com/embed/', $streamUrl); } @endphp @if($ytEmbed) @endif{{ $w->message }}