{{-- Fixed "Good to know" block on the public home: the event fee (when paid), attendance requirements, and the organiser's contact details. Each row is rendered only when it has content, and the whole section is skipped when everything is empty — so existing events show nothing new by default. All values come from the event settings; nothing is hardcoded. --}} @php $settings = app(\App\Settings\WeddingSettings::class); $wording = app(\App\Services\LandingPageWording::class); $fee = $settings->feeDisplay(); $requirements = $settings->requirements(); $contacts = $settings->contacts(); $contactGroups = []; foreach ($contacts as $contact) { $contactGroups[$contact['side']][] = $contact; } @endphp @if ($fee || $requirements !== [] || $contacts !== [])

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

@if ($fee)

{{ $wording('landing.details.fee') }}

{{ $fee }}

@if (trim((string) $settings->fee_notes) !== '')

{{ $settings->fee_notes }}

@endif
@endif @if ($requirements !== [])

{{ $wording('landing.details.requirements') }}

    @foreach ($requirements as $requirement)
  • {{ $requirement }}
  • @endforeach
@endif @if ($contacts !== [])

{{ $wording('landing.details.contact') }}

@foreach (\App\Enums\EventContactSide::cases() as $side) @php($sideContacts = $contactGroups[$side->value] ?? []) @continue($sideContacts === [])

{{ $side->label() }}

@foreach ($sideContacts as $contact) @php($accessibleName = $contact['name'] !== '' ? $contact['name'] : $side->label())
@if ($contact['name'] !== '')

{{ $contact['name'] }}

@endif
@if ($contact['phone'] !== '') @endif @if ($contact['whatsapp'] !== '') @endif @if ($contact['email'] !== '') @endif
@endforeach
@endforeach
@endif
@endif