@php // Read-only preview of guest wishes for the main invitation page (#3). // Only rows with a non-empty wish are shown; the full wishes page (and the // menu "Wishes" item) is the shared destination for leaving one. $settings = app(\App\Settings\WeddingSettings::class); $wording = app(\App\Services\LandingPageWording::class); $viewAllWishesLabel = trim($wording('landing.wishes.view_all_button')); if ($viewAllWishesLabel === '' || $viewAllWishesLabel === 'landing.wishes.view_all_button') { $viewAllWishesLabel = __('See all wishes'); } $wishes = \App\Models\Rsvp::query() ->whereNotNull('wishes') ->where('wishes', '!=', '') ->latest() ->limit(40) ->get(['id', 'name', 'wishes']); @endphp

{{ $wording('landing.wishes.page_title') }}

{{ $wording('landing.wishes.heading') }}

@if ($wishes->isNotEmpty())
@foreach ($wishes as $wish)
“{{ $wish->wishes }}”
— {{ $wish->name }}
@endforeach
@else

{{ $wording('landing.wishes.empty_preview') }}

@endif
{{ $viewAllWishesLabel }}