@extends('admin.layouts.app') @section('title', $event->title) @section('header', $event->title) @section('breadcrumb') {{ __('events.title') }} / {{ $event->title }} @endsection @section('header-actions') @if($event->status === 'published') {{ __('events.public_page') }}
@csrf
@endif {{ __('common.edit') }}
@csrf @method('DELETE')
@endsection @section('content') @php $statusMap = ['draft'=>'badge-secondary','published'=>'badge-success','cancelled'=>'badge-danger','completed'=>'badge-primary']; @endphp
{{ __('events.details') }}
{{ __('common.status') }} {{ __('events.status.' . $event->status) }}
{{ __('common.type') }} {{ __('events.type.' . $event->type) }}
{{ __('events.col_start') }} {{ $event->starts_at->format('Y. m. d. H:i') }}
@if($event->ends_at)
{{ __('events.col_end') }} {{ $event->ends_at->format('Y. m. d. H:i') }}
@endif
{{ __('common.online') }} {{ $event->is_online ? __('common.yes') : __('common.no') }}
@if($event->online_url) @endif @if($event->venue_name)
{{ __('events.venue') }} {{ $event->venue_name }}
@endif @if($event->city)
{{ __('common.city') }} {{ $event->city }}
@endif @if($event->capacity)
{{ __('events.capacity_short') }} {{ $event->capacity }} {{ __('events.persons_unit') }}
@endif @if($event->ticket_price !== null)
{{ __('events.ticket_price_short') }} {{ number_format($event->ticket_price, 0, ',', ' ') }} Ft
@endif
{{ __('events.waitlist_enabled') }} {{ $event->waitlist_enabled ? __('common.yes') : __('common.no') }}
@if($event->description)

{{ __('common.description') }}

{{ $event->description }}

@endif
{{-- Public registrations --}}
{{ __('events.registrations') }} ({{ $event->registrations->count() }})
{{ __('events.checkin_scanner') }} @if($event->status === 'published') {{ __('events.reg_link') }} @endif
@php $checkedInCount = $event->registrations->whereNotNull('checked_in_at')->count(); @endphp @if($event->registrations->count() > 0)
{{ __('events.checkin_total') }}: {{ $event->registrations->count() }} {{ __('events.checkin_done') }}: {{ $checkedInCount }} {{ __('events.checkin_pending_count') }}: {{ $event->registrations->count() - $checkedInCount }}
@endif @forelse($event->registrations as $reg) @empty @endforelse
{{ __('common.name') }} {{ __('common.email') }} {{ __('common.phone') }} {{ __('events.col_guests') }} {{ __('events.col_checkin') }} {{ __('common.registered') }}
{{ $reg->name }} {{ $reg->email }} {{ $reg->phone ?? '—' }} {{ $reg->guests }} @if($reg->checked_in_at) {{ $reg->checked_in_at->format('H:i') }} @else @endif {{ $reg->created_at->format('Y. m. d. H:i') }}
@csrf
@csrf @method('DELETE')
{{ __('events.no_regs') }}
{{-- Waiting list --}} @if($event->waitlist_enabled || $event->waitlist->count() > 0)
{{ __('events.waitlist_title') }} ({{ $event->waitlist->count() }}) @if(! $event->waitlist_enabled) {{ __('events.waitlist_disabled_note') }} @endif
@forelse($event->waitlist as $wl) @empty @endforelse
# {{ __('common.name') }} {{ __('common.email') }} {{ __('events.col_guests') }} {{ __('common.registered') }}
{{ $wl->waitlist_position }} {{ $wl->name }} {{ $wl->email }} {{ $wl->guests > 0 ? '+' . $wl->guests : '—' }} {{ $wl->created_at->format('Y. m. d. H:i') }} @if($event->capacity && $event->registrations->count() < $event->capacity)
@csrf
@endif
@csrf @method('DELETE')
{{ __('events.waitlist_empty') }}
@endif {{-- Volunteer shifts --}} @include('admin.events._shifts', ['event' => $event, 'people' => $people]) {{-- Internal RSVP --}}
{{ __('events.internal_rsvp') }} ({{ $event->rsvps->count() }})
@forelse($event->rsvps as $rsvp) @empty @endforelse
{{ __('common.name') }} {{ __('common.status') }} {{ __('common.registered') }}
@if($rsvp->person) {{ $rsvp->person->last_name }} {{ $rsvp->person->first_name }} @else @endif {{ $rsvp->status ?? '—' }} {{ $rsvp->created_at->format('Y. m. d.') }}
{{ __('events.no_rsvp') }}
@endsection