Show doubler preference on seating page #72
|
|
@ -50,6 +50,7 @@ class SeatAuditionFormController extends Controller
|
|||
$entryData = [];
|
||||
$entries = $this->ranker->rank('seating', $audition);
|
||||
$entries->load('student.school');
|
||||
$entries->load('student.doublerRequests');
|
||||
$seatable = [
|
||||
'allScored' => true,
|
||||
'doublersResolved' => true,
|
||||
|
|
@ -71,6 +72,7 @@ class SeatAuditionFormController extends Controller
|
|||
'totalScore' => $totalScoreColumn,
|
||||
'fullyScored' => $fullyScored,
|
||||
'doubleData' => $doublerData,
|
||||
'doublerRequest' => $entry->student->doublerRequests()->where('event_id', $audition->event_id)->first()?->request,
|
||||
];
|
||||
// If this entries double decision isn't made, block seating
|
||||
if ($doublerData && $doublerData[$entry->id]['status'] == 'undecided') {
|
||||
|
|
@ -97,7 +99,8 @@ class SeatAuditionFormController extends Controller
|
|||
});
|
||||
}
|
||||
|
||||
return view('tabulation.auditionSeating', compact('entryData', 'audition', 'rightPanel', 'seatableEntries', 'requestedEnsembleAccepts'));
|
||||
return view('tabulation.auditionSeating',
|
||||
compact('entryData', 'audition', 'rightPanel', 'seatableEntries', 'requestedEnsembleAccepts'));
|
||||
}
|
||||
|
||||
protected function pickRightPanel(Audition $audition, array $seatable)
|
||||
|
|
@ -106,6 +109,7 @@ class SeatAuditionFormController extends Controller
|
|||
$resultsWindow = new GetAuditionSeats;
|
||||
$rightPanel['view'] = 'tabulation.auditionSeating-show-published-seats';
|
||||
$rightPanel['data'] = $resultsWindow($audition);
|
||||
|
||||
return $rightPanel;
|
||||
}
|
||||
if ($seatable['allScored'] == false || $seatable['doublersResolved'] == false) {
|
||||
|
|
|
|||
|
|
@ -27,6 +27,9 @@
|
|||
</x-table.td>
|
||||
<x-table.td class="!py-0">
|
||||
@if($entry['doubleData'])
|
||||
@if($entry['doublerRequest'])
|
||||
<p class="pt-3"><span class="font-semibold">Request: </span>{{$entry['doublerRequest']}}</p>
|
||||
@endif
|
||||
@include('tabulation.auditionSeating-doubler-block')
|
||||
{{-- DOUBLER<br>--}}
|
||||
{{-- @foreach($entry['doubleData'] as $double)--}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue