Update look of monitor page
This commit is contained in:
parent
70f79d031c
commit
3e3b99c56c
|
|
@ -1,13 +1,15 @@
|
|||
<x-layout.app>
|
||||
<x-slot:page_title>Monitor Dashboard</x-slot:page_title>
|
||||
<x-card.card class="max-w-xl mx-auto">
|
||||
|
||||
{{-- PRELIM AUDITION STATUS CARD --}}
|
||||
<x-card.card>
|
||||
<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>
|
||||
<option value="" disabled hidden @if(! $prelimDefinition) selected @endif>Choose Prelim...</option>
|
||||
@foreach ($prelims as $prelim)
|
||||
<option
|
||||
<option @if($prelimDefinition && $prelimDefinition->id === $prelim->id) selected @endif
|
||||
value="{{ route('monitor.prelimStatus', $prelim) }}">{{$prelim->audition->name}}</option>
|
||||
@endforeach
|
||||
</x-form.select>
|
||||
|
|
@ -19,27 +21,38 @@
|
|||
<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>
|
||||
<x-table.th> </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
|
||||
<x-table.td>
|
||||
{{ $prelimDefinition->audition->name }} {{ $entry->draw_number }}
|
||||
@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
|
||||
</x-table.td>
|
||||
<x-table.td>{{ $entry->student->full_name() }}<br>{{ $entry->student->school->name }}</x-table.td>
|
||||
<x-table.td>
|
||||
@if($entry->prelimScoreSheets()->count() < 1)
|
||||
Mark No Show Button
|
||||
@endif
|
||||
</x-table.td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</x-table.table>
|
||||
@endif
|
||||
</x-card.card>
|
||||
|
||||
{{-- FINAL AUDITION STATUS CARD --}}
|
||||
</x-layout.app>
|
||||
|
|
|
|||
Loading…
Reference in New Issue