@props([ 'block', 'page', ]) @php /** @var \App\Models\PageBlock $block */ /** @var \App\Models\PreregistrationPage $page */ $c = $block->content ?? []; $fields = data_get($c, 'fields', []); $showIcons = filter_var(data_get($c, 'show_field_icons', true), FILTER_VALIDATE_BOOLEAN); $btnColor = (string) data_get($c, 'button_color', '#F47B20'); $btnText = (string) data_get($c, 'button_text_color', '#FFFFFF'); $privacyText = data_get($c, 'privacy_text'); $privacyUrl = data_get($c, 'privacy_url'); @endphp
@if (filled(data_get($c, 'title')))

{{ data_get($c, 'title') }}

@endif @if (filled(data_get($c, 'description')))

{{ data_get($c, 'description') }}

@endif
@foreach (['first_name', 'last_name'] as $fk) @php $fc = is_array($fields[$fk] ?? null) ? $fields[$fk] : []; $enabled = filter_var($fc['enabled'] ?? true, FILTER_VALIDATE_BOOLEAN); $req = filter_var($fc['required'] ?? true, FILTER_VALIDATE_BOOLEAN); @endphp @if ($enabled)
@if ($showIcons) @endif

@endif @endforeach
@php $emailFc = is_array($fields['email'] ?? null) ? $fields['email'] : []; $emailOn = filter_var($emailFc['enabled'] ?? true, FILTER_VALIDATE_BOOLEAN); @endphp @if ($emailOn)
@if ($showIcons) @endif

@endif @php $phoneFc = is_array($fields['phone'] ?? null) ? $fields['phone'] : []; $phoneOn = filter_var($phoneFc['enabled'] ?? false, FILTER_VALIDATE_BOOLEAN); $phoneReq = filter_var($phoneFc['required'] ?? false, FILTER_VALIDATE_BOOLEAN); @endphp @if ($phoneOn)
@if ($showIcons) @endif

@endif @if (filled($privacyText))

@if (filled($privacyUrl)) {{ $privacyText }} @else {{ $privacyText }} @endif

@endif

{{ __('Deel deze pagina') }}