42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<x-card.card>
|
|
<x-card.heading>
|
|
{{ $ensemble->name }}
|
|
<x-slot:right_side class="flex">
|
|
@if($ensemble->data['seated'] ?? false)
|
|
<x-form.form method="POST"
|
|
action="{{ route('nomination.admin.seating.seat',[$ensemble]) }}">
|
|
<input type="hidden" name="action" value="clear">
|
|
<x-form.button>Clear Seats</x-form.button>
|
|
</x-form.form>
|
|
@else
|
|
<x-form.form method="POST"
|
|
action="{{ route('nomination.admin.seating.seat',[$ensemble]) }}">
|
|
<input type="hidden" name="action" value="seat">
|
|
<x-form.button>Seat Ensemble</x-form.button>
|
|
</x-form.form>
|
|
@endif
|
|
</x-slot:right_side>
|
|
</x-card.heading>
|
|
|
|
<x-table.table>
|
|
@foreach($ensemble->data['instruments'] as $instrument)
|
|
@php($seatOn = 1)
|
|
@continue(! $acceptedNominations->has($instrument))
|
|
<tr class="border-t-2 border b-2">
|
|
<x-table.th>{{ $instrument }}</x-table.th>
|
|
<x-table.th>Student Name</x-table.th>
|
|
<x-table.th>School (Nom Rank)</x-table.th>
|
|
</tr>
|
|
@foreach($acceptedNominations[$instrument] as $nom)
|
|
<tr>
|
|
<x-table.td>{{ $seatOn }}</x-table.td>
|
|
<x-table.td>{{ $nom->student->full_name() }}</x-table.td>
|
|
<x-table.td>{{ $nom->student->school->name }} ({{ $nom->data['rank'] }})
|
|
</x-table.td>
|
|
</tr>
|
|
@php($seatOn++)
|
|
@endforeach
|
|
@endforeach
|
|
</x-table.table>
|
|
</x-card.card>
|