{{ __('Events') }}

@if (request()->filled('organiser')) โ€” {{ __('All events by :name', ['name' => $events->first()?->organiser->name ?? '']) }} @endif
{{ __('Browse upcoming events organised by community members. Premium and PRO members can create events. Click an event to view details, register, or share the link.') }}
@if (session('event-cancelled-stats')) @php $cs = session('event-cancelled-stats'); @endphp

{{ __('Event cancelled.') }}

@if ($cs['refunds_issued'] > 0)

{{ trans_choice(':count paid registration refunded.|:count paid registrations refunded.', $cs['refunds_issued']) }}

@endif @if ($cs['refunds_failed'] > 0)

{{ trans_choice(':count refund could not be processed automatically โ€” please handle manually.|:count refunds could not be processed automatically โ€” please handle manually.', $cs['refunds_failed']) }}

@endif @if ($cs['notifications'] > 0)

{{ trans_choice(':count person notified.|:count people notified.', $cs['notifications']) }}

@endif @if ($cs['charge_amount'] > 0)

{{ __('Refund processing costs of โ‚ฌ:amount have been charged to you via Mollie.', ['amount' => number_format($cs['charge_amount'], 2, ',', '.')]) }}

@endif
@endif @push('bottom-bar-buttons') @if (request()->filled('organiser')) {{ __('All events') }} @endif
@auth @if(Auth::user()->is_pro) ๐Ÿท {{ __('Discount codes') }} @endif @if(Auth::user()->is_premium) + {{ __('Create event') }} @else โญ {{ __('Create event') }} @endif @endauth @endpush
@php $typeLabels = [ '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'), ]; $clearUrl = route('events.index', array_filter(['organiser' => request('organiser')])); @endphp {{-- Filter bar --}}
@if(request()->filled('organiser')) @endif
{{-- ND-friendly --}} {{-- Event type --}}
{{-- Modality --}}
{{-- City / region --}}
{{-- Clear filters --}} @if(count($activeFilters) > 0) {{ __('Clear filters') }} {{ count($activeFilters) }} @endif
@if ($events->isEmpty())

{{ count($activeFilters) > 0 ? __('No events match your filters.') : __('No upcoming events.') }}

@if(count($activeFilters) > 0) {{ __('Clear filters') }} @endif
@else
@foreach ($events as $event) @php $organiser = $event->organiser; $proProfile = $organiser->proProfile ?? null; $typeLabels = [ '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'), ]; @endphp {{-- Omslagfoto bovenaan (16:9) --}}
@if ($event->cover_image) {{ $event->title }} @else

{{ $event->title }}

{{ $event->starts_at->translatedFormat('j M Y') }}

@endif @if ($event->nd_friendly) ๐Ÿง  {{ __('ND-friendly') }} @endif @if ($event->registration_required && $event->registration_price) โ‚ฌ{{ number_format((float)$event->registration_price, 2, ',', '.') }} @endif
{{-- Info onder de foto --}}
{{-- Datum --}}

๐Ÿ“… {{ $event->starts_at->translatedFormat('l j F Y') }} {{ $event->starts_at->format('H:i') }}@if($event->ends_at) โ€“ {{ $event->ends_at->format('H:i') }}@endif

{{-- Titel + tagline --}}

{{ $event->title }}

@if ($event->tagline)

{{ $event->tagline }}

@endif
{{-- Locatie + volledig adres --}} @if ($event->location || $event->address)
๐Ÿ“
@if ($event->location){{ $event->location }}@endif @if ($event->location && $event->address) ยท @endif @if ($event->address){{ $event->address }}@endif
@endif {{-- Tags + organisator --}}
@if ($event->event_type && isset($typeLabels[$event->event_type])) {{ $typeLabels[$event->event_type] }} @endif @if ($event->event_modality) {{ $event->event_modality === 'in_person' ? '๐Ÿ“' : ($event->event_modality === 'online' ? '๐Ÿ’ป' : '๐Ÿ”€') }} {{ __($event->event_modality) }} @endif @if ($event->is_private) ๐Ÿ”’ {{ __('Private') }} @endif @if ($event->registration_required && ! $event->registration_price) {{ __('Registration required') }} @endif {{-- Organisator rechts --}} @if ($organiser->primaryPhoto) {{ $organiser->name }} @elseif ($proProfile && $proProfile->logo_path) {{ $proProfile->organization_name }} @else
{{ strtoupper(substr($organiser->name, 0, 1)) }}
@endif {{ $proProfile?->organization_name ?? $organiser->name }}
@endforeach
{{ $events->links() }}
@endif