40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Events</x-slot:page_title>
|
|
<x-card.card class="mx-auto max-w-md">
|
|
<x-card.heading>
|
|
Manage Events
|
|
<x-slot:right_side>
|
|
<x-help-modal>
|
|
<x-slot:title>About Events in AuditionAdmin</x-slot:title>
|
|
<ul class="text-sm text-gray-600 list-disc ml-5 space-y-2">
|
|
{{-- move help text to a popout modal --}}
|
|
<li>Events generally refer to the performance for a group of auditions</li>
|
|
<li>Every audition is assigned to one event</li>
|
|
<li>An event cannot be deleted without first deleting all of its auditions</li>
|
|
<li>Students will not be allowed to be seated in multiple auditions for the same event</li>
|
|
<li>If no student will ever be able to accept more than one seat, all auditions should be in one event</li>
|
|
<li>If you have, for example, concert bands and jazz bands that perform at different times, and a student can make both, you should create the concert auditions in one event, and the jazz auditions in another event.</li>
|
|
</ul>
|
|
</x-help-modal>
|
|
</x-slot:right_side>
|
|
<x-slot:subheading>
|
|
|
|
</x-slot:subheading>
|
|
</x-card.heading>
|
|
<x-card.list.body>
|
|
@foreach($events as $event)
|
|
<x-card.list.row>
|
|
<div class="flex items-baseline justify-between">
|
|
<span>{{ $event->name }}</span> <span class="text-sm text-gray-500">, {{ $event->auditions()->count() }} Auditions</span>
|
|
</div>
|
|
</x-card.list.row>
|
|
@endforeach
|
|
|
|
{{-- The final row will allow for the creation of an event --}}
|
|
<x-card.list.row>
|
|
|
|
</x-card.list.row>
|
|
</x-card.list.body>
|
|
</x-card.card>
|
|
</x-layout.app>
|