77 lines
4.2 KiB
PHP
77 lines
4.2 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Monitor Dashboard</x-slot:page_title>
|
|
<x-card.card class="max-w-lg mx-auto mb-5">
|
|
<x-card.heading>
|
|
Audition Status
|
|
<x-slot:right_side>
|
|
<x-form.select name="audition_id" onchange="if (this.value) window.location.href = this.value">
|
|
<option value="" disabled hidden @if(! $audition) selected @endif>Choose Audition...</option>
|
|
@foreach ($auditions as $menuAudition)
|
|
@continue($menuAudition->hasFlag('seats_published') || $menuAudition->hasFlag('advance_published'))
|
|
<option @if($audition && $audition->id === $menuAudition->id) selected @endif
|
|
value="{{ route('monitor.auditionStatus', $menuAudition) }}">{{$menuAudition->name}}</option>
|
|
@endforeach
|
|
</x-form.select>
|
|
</x-slot:right_side>
|
|
</x-card.heading>
|
|
@if($audition)
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Entry</x-table.th>
|
|
@if($audition->prelimDefinition)
|
|
<x-table.th>Prelim<br/>Scores</x-table.th>
|
|
@endif
|
|
<x-table.th>Finals<br/>Scores</x-table.th>
|
|
<x-table.th></x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($entries as $entry)
|
|
<tr>
|
|
<x-table.td>
|
|
{{ $audition->name }} {{ $entry->draw_number }}
|
|
@if($audition->prelimDefinition && ! $entry->hasFlag('no_show'))
|
|
@if($entry->hasFlag('failed_prelim'))
|
|
<span
|
|
class="inline-flex items-center rounded-full bg-red-100 px-2 py-1 text-xs font-medium text-red-700 dark:bg-red-400/10 dark:text-red-400">Failed</span>
|
|
@elseif($entry->hasFlag('passed_prelim'))
|
|
<span
|
|
class="inline-flex items-center rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-700 dark:bg-green-400/10 dark:text-green-400">Passed</span>
|
|
@else
|
|
<span
|
|
class="inline-flex items-center rounded-full bg-yellow-100 px-2 py-1 text-xs font-medium text-yellow-800 dark:bg-yellow-400/10 dark:text-yellow-300">Pending</span>
|
|
@endif
|
|
@elseif($entry->hasFlag('no_show'))
|
|
<span
|
|
class="inline-flex items-center rounded-full bg-red-100 px-2 py-1 text-xs font-medium text-red-700 dark:bg-red-400/10 dark:text-red-400">No-Show</span>
|
|
@endif
|
|
</x-table.td>
|
|
@if($audition->prelimDefinition)
|
|
<x-table.td>
|
|
{{ $entry->prelim_score_sheets_count }}
|
|
</x-table.td>
|
|
@endif
|
|
<x-table.td>
|
|
{{ $entry->score_sheets_count }}
|
|
</x-table.td>
|
|
|
|
<x-table.td>
|
|
@if($entry->prelim_score_sheets_count < 1 && $entry->score_sheets_count < 1 && ! $entry->hasFlag('no_show') && ! $audition->hasFlag('seats_published'))
|
|
@include('monitor.noshow_modal')
|
|
@endif
|
|
|
|
@if($entry->hasFlag('no_show') && ! $audition->hasFlag('seats_published'))
|
|
@include('monitor.remove_nowshow_modal')
|
|
@endif
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
@endif
|
|
</x-card.card>
|
|
|
|
|
|
</x-layout.app>
|