@php $seatingProposal = []; @endphp @foreach($rightPanel['data'] as $ensembleLimit) {{ $ensembleLimit['ensemble']->name }} - DRAFT @php $maxAccepted = $requestedEnsembleAccepts[$ensembleLimit['ensemble']->id] ?? $ensembleLimit['limit']; // $maxAccepted = $ensembleLimit['limit']; @endphp @for($n=1; $n <= $maxAccepted; $n++) @php $entry = $seatableEntries->shift(); if (is_null($entry)) continue; $seatingProposal[] = [ 'ensemble_id' => $ensembleLimit['ensemble']->id, 'audition_id' => $audition->id, 'seat' => $n, 'entry_id' => $entry->id, ]; @endphp {{ $n }} - {{ $entry->student->full_name() }} @endfor @endforeach
@csrf Seat and Publish
@php session(['audition' . $audition->id . 'seatingProposal' => $seatingProposal]); @endphp