auditionadmin/resources/views/monitor/index.blade.php

46 lines
1.9 KiB
PHP

<x-layout.app>
<x-slot:page_title>Monitor Dashboard</x-slot:page_title>
<x-card.card class="max-w-xl mx-auto">
<x-card.heading>
Prelim Auditions
<x-slot:right_side>
<x-form.select name="prelim_id" onchange="if (this.value) window.location.href = this.value">
<option value="" disabled selected hidden>Choose Prelim...</option>
@foreach ($prelims as $prelim)
<option
value="{{ route('monitor.prelimStatus', $prelim) }}">{{$prelim->audition->name}}</option>
@endforeach
</x-form.select>
</x-slot:right_side>
</x-card.heading>
@if($prelimDefinition)
<x-table.table>
<thead>
<tr>
<x-table.th>Entry</x-table.th>
<x-table.th>Name</x-table.th>
<x-table.th>School</x-table.th>
<x-table.th>Status</x-table.th>
</tr>
</thead>
<tbody>
@foreach($entries as $entry)
<tr>
<x-table.td>{{ $prelimDefinition->audition->name }} {{ $entry->draw_number }}</x-table.td>
<x-table.td>{{ $entry->student->full_name() }}</x-table.td>
<x-table.td>{{ $entry->student->school->name }}</x-table.td>
@if($entry->hasFlag('failed_prelim'))
<x-table.td>Failed</x-table.td>
@elseif($entry->hasFlag('passed_prelim'))
<x-table.td>Passed</x-table.td>
@else
<x-table.td>Pending</x-table.td>
@endif
</tr>
@endforeach
</tbody>
</x-table.table>
@endif
</x-card.card>
</x-layout.app>