@extends('admin.layout') @section('title', 'Event #' . $event->id) @section('content') @php $modalityMap = ['in_person' => 'Fysiek', 'online' => 'Online', 'hybrid' => 'Hybride']; $statusColors = [ 'confirmed' => 'bg-green-100 text-green-600', 'paid' => 'bg-emerald-100 text-emerald-600', 'pending' => 'bg-yellow-100 text-yellow-600', 'cancelled' => 'bg-red-100 text-red-600', ]; @endphp
← Events Publiek bekijken ↗
{{-- Event info --}}

{{ $event->title }}

@if ($event->tagline)

{{ $event->tagline }}

@endif
@csrf @method('DELETE')
@php $row = fn($l, $v) => "
{$l}
{$v}
"; @endphp {!! $row('ID', '#' . $event->id) !!} {!! $row('Modaliteit', $modalityMap[$event->event_modality ?? ''] ?? '—') !!} {!! $row('Start', $event->starts_at?->format('d/m/Y H:i') ?? '—') !!} {!! $row('Einde', $event->ends_at?->format('d/m/Y H:i') ?? '—') !!} {!! $row('Locatie', e($event->location ?? $event->address ?? '—')) !!} {!! $row('Privé', $event->is_private ? 'Ja' : 'Nee') !!} {!! $row('ND-vriendelijk', $event->nd_friendly ? 'Ja' : 'Nee') !!} {!! $row('Max. deelnemers', $event->max_attendees ?? '∞') !!} {!! $row('Registratie vereist', $event->registration_required ? 'Ja' : 'Nee') !!} {!! $row('Prijs', $event->registration_price > 0 ? '€' . number_format($event->registration_price, 2, ',', '.') : 'Gratis') !!} {!! $row('Reg. sluit', $event->registration_closes_at?->format('d/m/Y H:i') ?? '—') !!} {!! $row('Aangemaakt', $event->created_at->format('d/m/Y H:i')) !!}
@if ($event->description)

Beschrijving

{{ $event->description }}

@endif {{-- Sensory info --}} @if ($event->nd_friendly || $event->sensory_noise || $event->sensory_lighting || $event->quiet_space)

Sensorisch profiel

@foreach ([ ['Geluid', $event->sensory_noise], ['Licht', $event->sensory_lighting], ['Drukte', $event->sensory_crowd], ['Communicatie', $event->communication_style], ['Sociale druk', $event->social_pressure], ] as [$label, $val]) @if ($val) {{ $label }}: {{ $val }} @endif @endforeach @if ($event->quiet_space) Stille ruimte @endif
@if ($event->sensory_notes)

{{ $event->sensory_notes }}

@endif
@endif
{{-- Right panel --}}
{{-- Organiser --}} {{-- Stats --}}

Statistieken

Registraties
{{ $registrations->count() }}
Bevestigd/betaald
{{ $registrations->whereIn('status', ['confirmed', 'paid'])->count() }}
Omzet
€{{ number_format($totalRevenue, 2, ',', '.') }}
Volgers
{{ $event->followers->count() }}
@if ($event->payout_iban)
IBAN
{{ $event->payout_iban }}
@endif
{{-- Group --}} @if ($event->group) @endif
{{-- Registrations table --}} @if ($registrations->count())

Registraties

@foreach ($registrations as $reg) @endforeach
Naam E-mail Status Bedrag Kortingscode Datum
@if ($reg->user) {{ $reg->user->name }} @else {{ $reg->name ?: '—' }} @endif {{ $reg->email ?: $reg->user?->email ?: '—' }} {{ $reg->status }} {{ $reg->amount_paid > 0 ? '€' . number_format($reg->amount_paid, 2, ',', '.') : '—' }} {{ $reg->coupon?->code ?? '—' }} {{ $reg->created_at->format('d/m/Y H:i') }}
@endif @endsection