@vite(['resources/css/ocean.css', 'resources/js/app.js']) @php function getImgUrl($path) { if (!$path) return 'https://images.unsplash.com/photo-1544207246-bedac5a36b53?w=800&fit=crop'; if (str_contains($path, 'placeholder')) return 'https://images.unsplash.com/photo-1544207246-bedac5a36b53?w=800&fit=crop'; return \Illuminate\Support\Str::startsWith($path, 'http') ? $path : asset($path); } @endphp

The Wedding Of

{{ $invitation->content['mempelai']['pria']['panggilan'] ?? 'Bayu' }}
&
{{ $invitation->content['mempelai']['wanita']['panggilan'] ?? 'Marina' }}

{{ \Carbon\Carbon::parse($invitation->content['acara']['akad']['waktu'] ?? now())->translatedFormat('l, d F Y') }}

Kepada Yth:

@if(isset($guest)) {{ $guest->name }} @else {{ request('to') ? str_replace('-', ' ', preg_replace('/-[a-zA-Z0-9]{4}$/', '', request('to'))) : 'Tamu Undangan' }} @endif


Save The Date

{{ $invitation->content['mempelai']['pria']['panggilan'] ?? 'Bayu' }} & {{ $invitation->content['mempelai']['wanita']['panggilan'] ?? 'Marina' }}

"{{ $invitation->content['quote'] ?? 'Seperti ombak yang selalu kembali ke pantai, cintaku akan selalu kembali padamu.' }}"

Mempelai

Groom

{{ $invitation->content['mempelai']['pria']['nama'] ?? 'Bayu Samudra' }}

The Groom

Putra Bpk {{ $invitation->content['mempelai']['pria']['ayah'] ?? 'Bpk. Samudra' }}
& Ibu {{ $invitation->content['mempelai']['pria']['ibu'] ?? 'Ibu Airin' }}

@if(!empty($invitation->content['mempelai']['pria']['instagram'])) @endif
&
Bride

{{ $invitation->content['mempelai']['wanita']['nama'] ?? 'Marina Azzurra' }}

The Bride

Putri Bpk {{ $invitation->content['mempelai']['wanita']['ayah'] ?? 'Bpk. Maritim' }}
& Ibu {{ $invitation->content['mempelai']['wanita']['ibu'] ?? 'Ibu Lauta' }}

@if(!empty($invitation->content['mempelai']['wanita']['instagram'])) @endif

Kisah Kami

@php $defaultStories = [ ['year' => '2019', 'title' => 'Pertemuan', 'story' => 'Kami bertemu pertama kali di sebuah festival musik jazz tepi pantai.'], ['year' => '2023', 'title' => 'Lamaran', 'story' => 'Di atas perahu saat matahari terbenam, ia memintaku menjadi pendamping hidupnya.'] ]; $stories = $invitation->content['love_stories'] ?? $defaultStories; @endphp @if(!empty($stories))
@foreach($stories as $story)
{{ $story['year'] }}

{{ $story['title'] }}

{{ $story['story'] }}

@endforeach
@else

Every love story is beautiful.

@endif

Acara

{{ $invitation->content['acara']['akad']['judul'] ?? 'Akad Nikah' }}


{{ \Carbon\Carbon::parse($invitation->content['acara']['akad']['waktu'] ?? now())->translatedFormat('l, d F Y') }}

Pukul {{ \Carbon\Carbon::parse($invitation->content['acara']['akad']['waktu'] ?? now())->format('H:i') }} WIB

{{ $invitation->content['acara']['akad']['tempat'] ?? 'Blue Lagoon Chapel' }}
{{ $invitation->content['acara']['akad']['alamat'] ?? '' }}

@php $akadW = $invitation->content['acara']['akad']['wilayah'] ?? []; $akadL1 = collect([!empty($akadW['village']) ? 'Kel. '.Str::title(strtolower($akadW['village'])) : null, !empty($akadW['district']) ? 'Kec. '.Str::title(strtolower($akadW['district'])) : null])->filter()->implode(', '); $akadL2 = collect([!empty($akadW['regency']) ? Str::title(strtolower($akadW['regency'])) : null, !empty($akadW['province']) ? Str::title(strtolower($akadW['province'])) : null])->filter()->implode(', '); @endphp @if($akadL1)

{{ $akadL1 }}

@endif @if($akadL2)

{{ $akadL2 }}

@endif Google Maps

{{ $invitation->content['acara']['resepsi']['judul'] ?? 'Resepsi Sunset' }}


{{ \Carbon\Carbon::parse($invitation->content['acara']['resepsi']['waktu'] ?? now())->translatedFormat('l, d F Y') }}

Pukul {{ \Carbon\Carbon::parse($invitation->content['acara']['resepsi']['waktu'] ?? now())->format('H:i') }} WIB

{{ $invitation->content['acara']['resepsi']['tempat'] ?? 'The Bay Beach Club' }}
{{ $invitation->content['acara']['resepsi']['alamat'] ?? '' }}

@php $resepsiW = $invitation->content['acara']['resepsi']['wilayah'] ?? []; $resepsiL1 = collect([!empty($resepsiW['village']) ? 'Kel. '.Str::title(strtolower($resepsiW['village'])) : null, !empty($resepsiW['district']) ? 'Kec. '.Str::title(strtolower($resepsiW['district'])) : null])->filter()->implode(', '); $resepsiL2 = collect([!empty($resepsiW['regency']) ? Str::title(strtolower($resepsiW['regency'])) : null, !empty($resepsiW['province']) ? Str::title(strtolower($resepsiW['province'])) : null])->filter()->implode(', '); @endphp @if($resepsiL1)

{{ $resepsiL1 }}

@endif @if($resepsiL2)

{{ $resepsiL2 }}

@endif Google Maps

Wedding Gift

Transfer Bank

{{ $invitation->content['amplop']['bank_name'] ?? 'Bank Mandiri' }}

{{ $invitation->content['amplop']['account_number'] ?? '1234-5678-9000' }}

a.n {{ $invitation->content['amplop']['account_holder'] ?? 'Ocean Putra' }}

@if(isset($invitation->content['amplop']['qris_image']))

Atau Scan QRIS Berikut

QRIS
@endif
@if(!empty($invitation->content['amplop']['alamat_kado']))

Kirim Kado Fisik

{{ $invitation->content['amplop']['alamat_kado'] }}

@endif

Ucapan & Doa

@if(session('success'))
{{ session('success') }}
@endif
@csrf
@foreach($invitation->comments->sortByDesc('created_at') as $comment)
{{ substr($comment->name ?? '', 0, 1) }}
{{ $comment->name }} {{ $comment->created_at->diffForHumans() }}

"{{ $comment->comment }}"

@endforeach