@extends('admin.portal') @section('title', $event->title) @section('header_title', $event->title) @section('content')

{{ $event->title }}

{{ $event->event_date->format('l, F j, Y') }} @if($event->event_time) at {{ $event->event_time }} @endif

Event Details

@if($event->image_path)
{{ $event->title }}
@endif

Type

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

Location

@if($event->is_virtual) Virtual Event @else {{ $event->location ?? '-' }} @endif

@if($event->attendance_status)

Attendance Status

{{ ucfirst($event->attendance_status) }}

@endif @if($event->attendance_label)

Attendance Label

{{ $event->attendance_label }}

@endif @if($event->description)

Description

{{ $event->description }}
@endif @if($event->external_url) @endif
{{ $attendances->total() }}

Total Registrations

Status Summary

Pending {{ $attendances->where('status', 0)->count() }}
Approved {{ $attendances->where('status', 1)->count() }}
Rejected {{ $attendances->where('status', 2)->count() }}
Cancelled {{ $attendances->where('status', 3)->count() }}

Registrations

@if(session('success'))
{{ session('success') }}
@endif
@forelse($attendances as $attendance) @empty @endforelse
User Info Type Status Registered Actions
{{ $attendance->user->name }}
{{ $attendance->user->email }}
{{ ucfirst(str_replace('_', ' ', $attendance->registration_type)) }} @if($attendance->status == 0) Pending @elseif($attendance->status == 1) Approved @elseif($attendance->status == 2) Rejected @elseif($attendance->status == 3) Cancelled @endif {{ $attendance->created_at->format('M d, Y H:i') }}
@if($attendance->status != 1)
@csrf @method('PUT')
@endif @if($attendance->status != 2 && $attendance->status != 3)
@csrf @method('PUT')
@endif @if($attendance->status != 3)
@csrf @method('PUT')
@endif
No registrations yet
@if($attendances->hasPages())
{{ $attendances->links() }}
@endif
@endsection