@php use Illuminate\Support\Carbon; $blockEditorState = $page->blocks->map(function ($b) { $content = $b->content ?? []; if ($b->type === 'countdown' && ! empty($content['target_datetime'])) { try { $content['target_datetime'] = Carbon::parse($content['target_datetime']) ->timezone(config('app.timezone')) ->format('Y-m-d\TH:i'); } catch (\Throwable) { } } return [ 'uid' => 'b'.$b->id, 'type' => $b->type, 'sort_order' => $b->sort_order, 'is_visible' => $b->is_visible, 'content' => $content, ]; })->values()->all(); $blockTypesMeta = [ ['type' => 'hero', 'label' => __('Hero-sectie'), 'hint' => __('Kop & subkop')], ['type' => 'image', 'label' => __('Afbeelding'), 'hint' => __('Logo of beeld, optionele link')], ['type' => 'benefits', 'label' => __('Voordelen'), 'hint' => __('Lijst met USPs')], ['type' => 'social_proof', 'label' => __('Social proof'), 'hint' => __('Telleraanmeldingen')], ['type' => 'form', 'label' => __('Registratieformulier'), 'hint' => __('Aanmeldformulier')], ['type' => 'countdown', 'label' => __('Afteltimer'), 'hint' => __('Aftellen naar datum')], ['type' => 'text', 'label' => __('Tekst'), 'hint' => __('Vrije tekst')], ['type' => 'cta_banner', 'label' => __('CTA-banner'), 'hint' => __('Knop + link')], ['type' => 'divider', 'label' => __('Scheiding'), 'hint' => __('Lijn of ruimte')], ]; $benefitIcons = ['ticket', 'clock', 'mail', 'users', 'star', 'heart', 'gift', 'music', 'shield', 'check']; @endphp
{{ __('Sleep blokken om de volgorde te wijzigen. Klik op een blok om het te openen of te sluiten. Het oog-icoon verbergt een blok op de publieke pagina.') }}
{{ __('Voornaam, achternaam en e-mail blijven verplicht ingeschakeld voor de database.') }}
{{ __('Dit blok verwijderen?') }}