@php use App\Support\InvitationFeatures; $isExisting = isset($invitation) && $invitation->exists; $features = $isExisting ? $invitation->normalizedFeatures() : InvitationFeatures::defaults(true); $featureOn = fn (string $key) => (bool) ($features[$key] ?? true); $canChangeTemplate = ! empty($showOwnerField) || $featureOn('change_template') || ! $isExisting; $canManageFeatures = ! empty($showOwnerField); $featureDefinitions = InvitationFeatures::definitions(); @endphp @csrf
@if ($featureOn('maps') || $canManageFeatures) @endif @if ($featureOn('maps') || $canManageFeatures) @endif @if (! empty($showOwnerField) && isset($customers)) @endif
@if ($featureOn('story') || $canManageFeatures) @endif @if ($canManageFeatures)

Override Fitur Undangan

Opsional. Biasanya otomatis mengikuti paket. Centang untuk mengaktifkan per undangan.

@foreach ($featureDefinitions as $key => $meta) @php $checked = old('enabled_features.'.$key, $features[$key] ?? true); @endphp @endforeach
@endif
@if ($featureOn('cover') || $canManageFeatures) @endif @if ($featureOn('music') || $canManageFeatures) @endif
@if ($featureOn('gallery') || $canManageFeatures) @if (!empty($invitation?->gallery))
@foreach ($invitation->gallery as $path) @endforeach
@endif @endif @if ($featureOn('gift') || $canManageFeatures) @php $giftAccounts = old('gift_accounts', $invitation->gift_accounts ?? []); $giftAccounts = array_pad(array_values($giftAccounts), 3, ['bank' => '', 'number' => '', 'holder' => '']); $giftAccounts = array_slice($giftAccounts, 0, 3); @endphp

Amplop Digital (opsional, max 3)

Isi rekening atau e-wallet untuk tamu yang ingin memberi hadiah.

@foreach ($giftAccounts as $index => $account)
@endforeach

QRIS

Upload screenshot kode QRIS agar tamu bisa scan langsung dari undangan.

@if (!empty($invitation?->qris_image))
QRIS
@endif
@endif @if ($errors->any())
@endif