For unscored entries, show the number of judges that have entered a score for each entry.

Closes #92
This commit is contained in:
Matt Young 2025-06-30 08:32:36 -05:00
parent 9cf025154a
commit ad4c2e80b6
2 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,7 @@ class SeatAuditionFormController extends Controller
$query->where('flag_name', 'failed_prelim'); $query->where('flag_name', 'failed_prelim');
}) })
->with('student.school') ->with('student.school')
->withCount('scoreSheets')
->orderBy('draw_number', 'asc') ->orderBy('draw_number', 'asc')
->get(); ->get();

View File

@ -89,6 +89,7 @@
<x-table.th>Draw #</x-table.th> <x-table.th>Draw #</x-table.th>
<x-table.th>ID</x-table.th> <x-table.th>ID</x-table.th>
<x-table.th>Student</x-table.th> <x-table.th>Student</x-table.th>
<x-table.th>Judges<br>Scored</x-table.th>
<x-table.th></x-table.th> <x-table.th></x-table.th>
</tr> </tr>
</thead> </thead>
@ -101,6 +102,9 @@
<span>{{ $entry->student->full_name() }}</span> <span>{{ $entry->student->full_name() }}</span>
<span class="text-xs text-gray-400">{{ $entry->student->school->name }}</span> <span class="text-xs text-gray-400">{{ $entry->student->school->name }}</span>
</x-table.td> </x-table.td>
<x-table.td>
{{ $entry->score_sheets_count }}
</x-table.td>
<x-table.td> <x-table.td>
<x-form.form method="POST" <x-form.form method="POST"
action="{{ route('seating.audition.noshow',[$audition, $entry]) }}"> action="{{ route('seating.audition.noshow',[$audition, $entry]) }}">