167 lines
8.7 KiB
PHP
167 lines
8.7 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Audition Seating - {{ $audition->name }}</x-slot:page_title>
|
|
<div class="grid grid-cols-4"></div>
|
|
<div class="grid grid-cols-4">
|
|
|
|
<div class="col-span-3"> {{-- Entry Ranking Table --}}
|
|
<x-card.card class="px-3"> {{-- Scored Entries --}}
|
|
<x-card.heading class="-ml-3">Scored Entries</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Rank</x-table.th>
|
|
<x-table.th>ID</x-table.th>
|
|
<x-table.th>Draw #</x-table.th>
|
|
<x-table.th>Student</x-table.th>
|
|
<x-table.th>Doubler</x-table.th>
|
|
<x-table.th>Total Score
|
|
@if($audition->bonusScore()->count() > 0)
|
|
<br>
|
|
<div class="display: flex">
|
|
<x-icons.checkmark color="green"/>
|
|
Has Bonus
|
|
</div>
|
|
@endif
|
|
</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-gray-200">
|
|
@foreach($scored_entries as $entry)
|
|
<tr>
|
|
<x-table.td class="align-top">{{ $loop->iteration }}</x-table.td>
|
|
<x-table.td class="align-top">{{ $entry->id }}</x-table.td>
|
|
<x-table.td class="align-top">{{ $entry->draw_number }}</x-table.td>
|
|
<x-table.td class="align-top">
|
|
<div>{{ $entry->student->full_name() }}</div>
|
|
<div class="text-xs text-gray-400">{{ $entry->student->school->name }}</div>
|
|
</x-table.td>
|
|
<x-table.td class="align-top">
|
|
@if( isset($doubler_data[$entry->id]) )
|
|
{{-- Check if this entry is a doubler --}}
|
|
@foreach($doubler_data[$entry->id]['entries'] as $de)
|
|
{{-- If it is, render doubler blocks --}}
|
|
<div class="border-2 border-gray-200 p-2 m-2">
|
|
{{-- @var \App\Models\Entry $de --}}
|
|
<div class="font-semibold mb-2">
|
|
{{ $de->audition->name }} #{{$de->draw_number}} ({{ $de->id }})
|
|
</div>
|
|
@php($unscored = $de->audition->unscoredEntries()->count())
|
|
@if($unscored > 0)
|
|
<div>{{ $unscored }} Unscored Entries</div>
|
|
@endif
|
|
@if(! $de->rank('seating'))
|
|
<div class="text-red-500">THIS ENTRY NOT SCORED</div>
|
|
@else
|
|
<div>Ranked: {{ $de->rank('seating') }}</div>
|
|
<div class="mt-2">
|
|
Acceptance Limits<br>
|
|
@foreach ($de->audition->SeatingLimits as $limit)
|
|
{{ $limit->ensemble->name }} -> {{ $limit->maximum_accepted }}
|
|
<br>
|
|
@endforeach
|
|
</div>
|
|
<div class="mt-3">
|
|
<span class="isolate flex w-full rounded-md shadow-xs">
|
|
<button type="button" class="relative w-1/2 justify-center inline-flex items-center rounded-l-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-10">Accept</button>
|
|
<button type="button" class="relative -ml-px w-1/2 justify-center inline-flex items-center rounded-r-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 ring-1 ring-gray-300 ring-inset hover:bg-gray-50 focus:z-10">Decline</button>
|
|
</span>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@endforeach
|
|
@endif
|
|
</x-table.td>
|
|
<x-table.td class="align-top">{{ $entry->totalScore->seating_total }}</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
|
|
<x-card.card class="mt-3"> {{-- Unscored Entries --}}
|
|
<x-card.heading class="-ml-3">Unscored Entries</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Draw #</x-table.th>
|
|
<x-table.th>ID</x-table.th>
|
|
<x-table.th>Student</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($unscored_entries as $entry)
|
|
<tr>
|
|
<x-table.td>{{ $entry->draw_number }}</x-table.td>
|
|
<x-table.td>{{ $entry->id }}</x-table.td>
|
|
<x-table.td class="flex flex-col">
|
|
<span>{{ $entry->student->full_name() }}</span>
|
|
<span class="text-xs text-gray-400">{{ $entry->student->school->name }}</span>
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
|
|
<x-card.card class="mt-3"> {{-- No Show Entries --}}
|
|
<x-card.heading class="-ml-3">No Show Entries</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Draw #</x-table.th>
|
|
<x-table.th>ID</x-table.th>
|
|
<x-table.th>Student</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($noshow_entries as $entry)
|
|
<tr>
|
|
<x-table.td>{{ $entry->draw_number }}</x-table.td>
|
|
<x-table.td>{{ $entry->id }}</x-table.td>
|
|
<x-table.td class="flex flex-col">
|
|
<span>{{ $entry->student->full_name() }}</span>
|
|
<span class="text-xs text-gray-400">{{ $entry->student->school->name }}</span>
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
|
|
<x-card.card class="mt-3"> {{-- Failed Prelim Entries --}}
|
|
<x-card.heading class="-ml-3">Failed Prelim Entries</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Draw #</x-table.th>
|
|
<x-table.th>ID</x-table.th>
|
|
<x-table.th>Student</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($failed_prelim_entries as $entry)
|
|
<tr>
|
|
<x-table.td>{{ $entry->draw_number }}</x-table.td>
|
|
<x-table.td>{{ $entry->id }}</x-table.td>
|
|
<x-table.td class="flex flex-col">
|
|
<span>{{ $entry->student->full_name() }}</span>
|
|
<span class="text-xs text-gray-400">{{ $entry->student->school->name }}</span>
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="ml-4">
|
|
Controls
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</x-layout.app>
|