@php $stats = $this->stats; $timeline = $this->timeline; $peak = collect($timeline)->max('inside') ?: 1; @endphp
{{-- ---------------------------------------------------------- stats --}}
{{-- ------------------------------------------------- attendance --}}

Attendance over time

@if(empty($timeline)) @else {{-- Simple column chart: bar height is the head-count inside at that hour. --}}
@foreach($timeline as $point)
{{ $point['label'] }}
@endforeach
Inside the venue Peak: {{ $peak }}
@endif
{{-- ------------------------------------------------------ detail --}}

Event details

@foreach([ 'Client' => $event->client->name, 'Starts' => $event->starts_at->format('D, d M Y · H:i'), 'Ends' => $event->ends_at?->format('D, d M Y · H:i'), 'Venue' => $event->venue, 'Re-entry' => $event->allow_reentry ? ($event->max_reentries ? 'Allowed, max ' . $event->max_reentries : 'Allowed, unlimited') : 'Not allowed', 'Time window' => $event->enforce_time_window ? 'Enforced' : 'Not enforced', 'Code prefix' => $event->ticket_prefix, 'Print template' => $event->printTemplate?->name, ] as $label => $value) @if($value)
{{ $label }}
{{ $value }}
@endif @endforeach
@if($event->description)

{{ $event->description }}

@endif
{{-- --------------------------------------------- ticket types --}}

Ticket types

@can('update', $event) @endcan
@if($this->typeBreakdown->isEmpty()) @else
@foreach($this->typeBreakdown as $type)

{{ $type->name }} @if($type->code) {{ $type->code }} @endif

{{ number_format($type->tickets_count) }} issued · {{ number_format($type->attended_count) }} attended · {{ number_format($type->inside_count) }} inside

{{ number_format((float) $type->price, 2) }} @can('update', $event) @endcan
@endforeach
@endif
{{-- -------------------------------------------------- batches --}}

Generation history

Open tickets
@if($this->batches->isEmpty()) @can('generateTickets', $event) Generate tickets @endcan @else
@foreach($this->batches as $batch)

{{ number_format($batch->quantity) }} × {{ $batch->ticketType?->name ?? 'Untyped' }}

#{{ $batch->start_number }}–{{ $batch->end_number }} · {{ $batch->created_at->diffForHumans() }} @if($batch->creator) · {{ $batch->creator->name }} @endif

@can('print', $event) @endcan
@endforeach
@endif
{{-- ------------------------------------------------------- type form --}}
@error('type_name')

{{ $message }}

@enderror
@error('type_code')

{{ $message }}

@enderror

Appears in ticket codes.

@error('type_price')

{{ $message }}

@enderror