24 lines
1.1 KiB
PHP
24 lines
1.1 KiB
PHP
<x-card.card class="mb-3">
|
|
<x-card.heading>Seating</x-card.heading>
|
|
<div class="py-3 px-1">
|
|
<x-form.form method="POST" action="{{ route('tabulation.audition.seat',['audition' => $audition]) }}">
|
|
@csrf
|
|
@foreach($ensembleLimits as $ensembleLimit)
|
|
@php
|
|
$value = $requestedEnsembleAccepts[$ensembleLimit->ensemble->id] ?? $ensembleLimit->maximum_accepted;
|
|
@endphp
|
|
|
|
<x-form.field name="ensembleAccept[{{ $ensembleLimit->ensemble->id }}]"
|
|
label_text="{{ $ensembleLimit->ensemble->name }} - Max: {{ $ensembleLimit->maximum_accepted }}"
|
|
type="number"
|
|
max="{{ $ensembleLimit->maximum_accepted }}"
|
|
value="{{ $value }}"
|
|
class="mb-3"/>
|
|
@endforeach
|
|
<x-form.footer>
|
|
<x-form.button type="submit">Seat</x-form.button>
|
|
</x-form.footer>
|
|
</x-form.form>
|
|
</div>
|
|
</x-card.card>
|