MEOBDA show assigned split and seat on nomination admin page

This commit is contained in:
Matt Young 2025-02-15 10:54:46 -06:00
parent 6ef89c9dfa
commit d5699b1412
2 changed files with 5 additions and 3 deletions

View File

@ -56,6 +56,8 @@
<x-table.th>Name</x-table.th> <x-table.th>Name</x-table.th>
<x-table.th>School</x-table.th> <x-table.th>School</x-table.th>
<x-table.th>Nominated For</x-table.th> <x-table.th>Nominated For</x-table.th>
<x-table.th>Split</x-table.th>
<x-table.th>Seat</x-table.th>
</tr> </tr>
</thead> </thead>
<x-table.body> <x-table.body>
@ -64,6 +66,8 @@
<x-table.td>{{ $nomination->student->full_name('fl') }}</x-table.td> <x-table.td>{{ $nomination->student->full_name('fl') }}</x-table.td>
<x-table.td>{{ $nomination->student->school->name }}</x-table.td> <x-table.td>{{ $nomination->student->school->name }}</x-table.td>
<x-table.td>{{ $nomination->ensemble->name }} - {{ $nomination->data['instrument'] }}</x-table.td> <x-table.td>{{ $nomination->ensemble->name }} - {{ $nomination->data['instrument'] }}</x-table.td>
<x-table.td>{{ $nomination->data['split'] ?? '---' }}</x-table.td>
<x-table.td>{{ $nomination->data['seat'] ?? '---' }}</x-table.td>
</tr> </tr>
@endforeach @endforeach
</x-table.body> </x-table.body>

View File

@ -44,10 +44,8 @@
@continue(! $nominations[$split]->has($instrument['name'])) @continue(! $nominations[$split]->has($instrument['name']))
<x-card.heading class="ml-5"> <x-card.heading class="ml-5">
{{ $instrument['name'] }} {{ $instrument['name'] }}
<x-slot:right_side>
Count: {{ count($nominations[$split][$instrument['name']]) }}</x-slot:right_side>
</x-card.heading> </x-card.heading>
<x-card.list.body> <x-card.list.body class="ml-10">
@foreach($nominations[$split][$instrument['name']] as $thisNomination) @foreach($nominations[$split][$instrument['name']] as $thisNomination)
<x-card.list.row>{{ $thisNomination->data['seat'] }} - {{ $thisNomination->student->full_name() }}, {{ $thisNomination->student->school->name }}</x-card.list.row> <x-card.list.row>{{ $thisNomination->data['seat'] }} - {{ $thisNomination->student->full_name() }}, {{ $thisNomination->student->school->name }}</x-card.list.row>