27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<x-card.card class="mb-3">
|
|
@php
|
|
@endphp
|
|
<x-card.heading>Seating</x-card.heading>
|
|
<div class="py-3 px-1">
|
|
<x-form.form method="POST" action="{{ route('seating.audition',['audition' => $audition]) }}">
|
|
@csrf
|
|
@foreach($rightPanel['data'] as $ensembleLimit)
|
|
@php
|
|
$value = $requestedEnsembleAccepts[$ensembleLimit['ensemble']->id] ?? $ensembleLimit['limit'];
|
|
// $value = $ensembleLimit['limit'];
|
|
@endphp
|
|
|
|
<x-form.field name="ensembleAccept[{{ $ensembleLimit['ensemble']->id }}]"
|
|
label_text="{{ $ensembleLimit['ensemble']->name }} - Max: {{ $ensembleLimit['limit'] }}"
|
|
type="number"
|
|
max="{{ $ensembleLimit['limit'] }}"
|
|
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>
|