@extends('components.app-layout') @section('title', $event->title) @section('subtitle', 'Event Details') @section('content')

{{ $event->title }}

{{ ucfirst($event->status) }}
{{ $event->start_datetime->format('M j, Y') }} {{ $event->start_datetime->format('g:i A') }} - {{ $event->end_datetime->format('g:i A') }} @if($event->location) {{ $event->location }} @endif
@can('update', $event) Edit Event @endcan View Attendance QR Code

Total Attendance

{{ $event->attendances->count() }}

Checked In

{{ $event->attendances->whereNotNull('checked_in_at')->count() }}

QR Scans

{{ $event->attendances->where('attendance_method', 'qr_code')->count() }}

Available Spots

@if($event->max_attendees) {{ $event->max_attendees - $event->attendances->count() }} @else ∞ @endif

Event Description

@if($event->description)
{!! nl2br(e($event->description)) !!}
@else

No description provided.

@endif
@if($event->special_instructions)

Special Instructions

{!! nl2br(e($event->special_instructions)) !!}
@endif @if($event->required_items && count($event->required_items) > 0)

Required Items

    @foreach($event->required_items as $item)
  • {{ $item }}
  • @endforeach
@endif @if($event->attendances->count() > 0)

Recent Attendees

View All →
@foreach($event->attendances->take(5) as $attendance)
@if($attendance->member->photo) {{ $attendance->member->full_name }} @else
{{ substr($attendance->member->first_name, 0, 1) }}{{ substr($attendance->member->last_name, 0, 1) }}
@endif

{{ $attendance->member->full_name }}

@if($attendance->checked_in_at) Checked in {{ $attendance->checked_in_at->format('g:i A') }} @else Registered @endif

@if($attendance->attendance_method === 'qr_code') QR @else Manual @endif
@endforeach
@endif

Event Information

{{ str_replace('_', ' ', $event->event_type) }}

@if($event->ministry)

{{ $event->ministry->name }}

@endif @if($event->organizer)

{{ $event->organizer->full_name }}

@endif @if($event->max_attendees)

{{ $event->max_attendees }}

@endif @if($event->registration_fee)

₵{{ number_format($event->registration_fee, 2) }}

@endif @if($event->registration_deadline)

{{ $event->registration_deadline->format('M j, Y g:i A') }}

@endif

QR Attendance

@can('update', $event)

Actions

Edit Event @if($event->status === 'draft') @endif
@endcan
@push('scripts') @endpush @endsection