@php $copy = $copy ?? null; $labels = $labels ?? collect(); // Determine which step has the first validation error so the wizard lands there $errorStep = 1; if ($errors->hasAny(['starts_at', 'ends_at', 'event_modality', 'location', 'address', 'online_url'])) $errorStep = 2; elseif ($errors->hasAny(['description', 'what_to_expect', 'contact_email', 'website_url'])) $errorStep = 3; elseif ($errors->hasAny(['registration_price', 'max_attendees', 'service_fee', 'payout_iban', 'registration_closes_at'])) $errorStep = 4; elseif ($errors->hasAny(['nd_friendly', 'sensory_noise', 'sensory_lighting', 'sensory_crowd', 'sensory_notes'])) $errorStep = 5; elseif ($errors->hasAny(['group_id', 'coupon_label_id', 'bg_color', 'bg_gradient_from', 'bg_gradient_to', 'accent_color'])) $errorStep = 6; @endphp

{{ $copy ? __('Copy event') : __('Create event') }}

{{ __('Fill in the event details. Add a cover image (1280×1010 px), choose a modality (in person, online or hybrid) and optionally enable registration with or without payment. Use the background colour options to personalise the public event page and embed it on your own website.') }}
@csrf {{-- ══════════════════════════════════════════ --}} {{-- Progress bar --}} {{-- ══════════════════════════════════════════ --}}
@foreach ([ 1 => __('Basics'), 2 => __('When & where'), 3 => __('Content'), 4 => __('Registration'), 5 => __('ND profile'), 6 => __('Finish'), ] as $n => $label) {{ $n }}. {{ $label }} @endforeach
{{-- ══════════════════════════════════════════ --}} {{-- Stap 1 — Basis --}} {{-- ══════════════════════════════════════════ --}}

{{ __('1. Basics') }}

{{-- Kopieer-banner --}} @if ($copy)
{{ __('Copied from') }}: {{ $copy->title }}
@endif {{-- Cover image --}}

{{ __('Recommended: 1200 × 628 px. Max 10 MB.') }}

@if ($copy?->cover_image)

{{ __('Upload a new image to replace the original.') }}

@else @endif
{{-- Title --}}
{{-- Tagline --}}
{{-- Event type --}} @php $eventTypes = ['fun_activity'=>__('Fun activity'),'online_meeting'=>__('Online meeting'),'peer_support'=>__('Peer support'),'lecture'=>__('Lecture / Talk'),'workshop'=>__('Workshop'),'walk'=>__('Walk / Hike'),'game_night'=>__('Game night'),'creative'=>__('Creative / Arts'),'food_drinks'=>__('Food & drinks'),'sport'=>__('Sport & movement'),'meet_greet'=>__('Meet & greet')]; @endphp
{{-- ══════════════════════════════════════════ --}} {{-- Stap 2 — Wanneer & Waar --}} {{-- ══════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════ --}} {{-- Stap 3 — Inhoud --}} {{-- ══════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════ --}} {{-- Stap 4 — Inschrijving --}} {{-- ══════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════ --}} {{-- Stap 5 — ND-profiel --}} {{-- ══════════════════════════════════════════ --}} {{-- ══════════════════════════════════════════ --}} {{-- Stap 6 — Afronden --}} {{-- ══════════════════════════════════════════ --}}
@push('bottom-bar-buttons') {{-- $store.wizard is initialised in alpine:init below and is globally reactive --}} {{ __('Cancel') }} @endpush