179 lines
8.4 KiB
PHP
179 lines
8.4 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 id="entry-{{ $entry->id }}">
|
|
<x-table.td class="align-top">{{ $entry->seatingRank }}</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>
|
|
<a href="{{ route('admin.students.edit',[$entry->student_id]) }}">{{ $entry->student->full_name() }}</a>
|
|
</div>
|
|
<div class="text-xs text-gray-400">{{ $entry->student->school->name }}</div>
|
|
</x-table.td>
|
|
<x-table.td class="align-top">
|
|
@php($doubler = $doublerData->get($entry->student_id))
|
|
@if($doubler)
|
|
@if($doubler->accepted_entry == $entry->id)
|
|
ACCEPTED
|
|
@elseif($entry->hasFlag('declined'))
|
|
DECLINED
|
|
@else
|
|
@if($request = $entry->student->doublerRequests()->where('event_id',$entry->audition->event_id)->first())
|
|
<div
|
|
class="border-2 border-gray-200 p-2 m-2"> {{-- Begin block seating request --}}
|
|
<div class="font-semibold mb-2">
|
|
Request
|
|
</div>
|
|
<div class="text-wrap">
|
|
<p>{{ $request->request }}</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
@foreach($entry->student->entriesForEvent($entry->audition->event_id) as $de)
|
|
@include('tabulation.auditionSeating-doubler-block')
|
|
@endforeach
|
|
@endif
|
|
@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>
|
|
<x-table.th></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>
|
|
<x-table.td>
|
|
<x-form.form method="POST" action="{{ route('seating.audition.noshow',[$audition, $entry]) }}">
|
|
<x-form.button>Record No Show</x-form.button>
|
|
</x-form.form>
|
|
</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">
|
|
{{-- TODO: Add in bulk delince doubler option --}}
|
|
@if($unscored_entries->count() > 0)
|
|
<x-card.card class="p-3 text-red-500 mb-3">
|
|
Cannot seat the audition while entries are unscored.
|
|
</x-card.card>
|
|
@endif
|
|
|
|
@if($auditionHasUnresolvedDoublers)
|
|
<x-card.card class="p-3 text-red-500">
|
|
Cannot seat the audition while there are unresolved doublers.
|
|
</x-card.card>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</x-layout.app>
|