Files
ladill-events/resources/views/events/attendees-hub.blade.php
T
isaaccladandCursor 129dd04bea
Deploy Ladill Events / deploy (push) Successful in 31s
Remove event search from Attendees, Badge printing, and Speakers hubs.
These pages list all events directly without a redundant search filter.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 22:06:27 +00:00

42 lines
2.8 KiB
PHP

<x-user-layout>
<x-slot name="title">Attendees</x-slot>
<div class="mx-auto max-w-5xl space-y-6">
<div>
<h1 class="text-2xl font-bold text-slate-900">Attendees</h1>
<p class="mt-1 text-sm text-slate-500">Manage registrations, check-ins, and programme sharing for each event.</p>
</div>
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
@if($events->isEmpty())
<div class="px-6 py-14 text-center">
<p class="text-sm text-slate-500">No events yet.</p>
<a href="{{ route('events.create') }}" class="mt-4 btn-primary">
Create your first event
</a>
</div>
@else
<div class="divide-y divide-slate-100">
@foreach($events as $event)
@php $content = $event->content(); @endphp
<a href="{{ route('events.attendees', $event) }}" class="flex items-center gap-4 px-6 py-4 transition hover:bg-slate-50">
<div class="flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-indigo-50 text-indigo-600">
<svg class="h-5 w-5" fill="none" stroke="currentColor" stroke-width="1.8" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 0 0 2.625.372 9.337 9.337 0 0 0 4.121-.952 4.125 4.125 0 0 0-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 0 1 8.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0 1 11.964-3.07M12 6.375a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0Zm8.25 2.25a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"/></svg>
</div>
<div class="min-w-0 flex-1">
<p class="truncate text-sm font-semibold text-slate-900">{{ $content['name'] ?? $event->label }}</p>
<p class="truncate text-xs text-slate-500">{{ $event->label }}</p>
</div>
<div class="hidden text-right text-xs text-slate-500 sm:block">
<p class="font-semibold text-slate-900">{{ number_format($event->confirmed_count) }} registered</p>
<p>{{ number_format($event->checked_in_count) }} checked in</p>
</div>
<svg class="h-4 w-4 shrink-0 text-slate-300" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="m8.25 4.5 7.5 7.5-7.5 7.5"/></svg>
</a>
@endforeach
</div>
@endif
</div>
</div>
</x-user-layout>