-
- @include('tabulation.auditionSeating-results-table')
-
-
- @include($rightPanel['view'])
-
-{{--
--}}
-{{-- @if($audition->hasFlag('seats_published'))--}}
-{{-- @include('tabulation.auditionSeating-show-published-seats')--}}
-{{-- @elseif(! $auditionComplete)--}}
-{{-- @include('tabulation.auditionSeating-unable-to-seat-card')--}}
-{{-- @else--}}
-{{-- @include('tabulation.auditionSeating-fill-seats-form')--}}
-{{-- @include('tabulation.auditionSeating-show-proposed-seats')--}}
-{{-- @endif--}}
+
+
+
{{-- Entry Ranking Table --}}
+
{{-- Scored Entries --}}
+ Scored Entries
+
+
+
+ Rank
+ ID
+ Draw #
+ Student
+ Doubler
+ Total Score
+ @if($audition->bonusScore()->count() > 0)
+
+
+ No Bonus Score
+
+ @endif
+
+
+
+
+ @foreach($scored_entries as $entry)
+
+ {{ $entry->seatingRank }}
+ {{ $entry->id }}
+ {{ $entry->draw_number }}
+
+
+ {{ $entry->student->school->name }}
+
+
+ @php($doubler = $doublerData->get($entry->student_id))
+ @if($doubler)
+ @if($doubler->accepted_entry == $entry->id)
+ ACCEPTED
+ @elseif($entry->hasFlag('declined'))
+ DECLINED
+ @else
+ @if($request = $entry->student->doublerRequests()->where('event_id',$entry->audition->event_id)->first())
+ {{-- Begin block seating request --}}
+
+ Request
+
+
+
{{ $request->request }}
+
+
+
+
+ @endif
+ @foreach($entry->student->entriesForEvent($entry->audition->event_id) as $de)
+ @include('tabulation.auditionSeating-doubler-block')
+ @endforeach
+ @endif
+ @endif
+
+
+
+
+ @if($audition->bonusScore()->count() > 0)
+ @if($entry->totalScore->bonus_total)
+ {{ $entry->totalScore->seating_total_with_bonus }}
+ @else
+ {{ $entry->totalScore->seating_total_with_bonus }}
+ @endif
+ @else
+ {{ $entry->totalScore->seating_total }}
+ @endif
+
+
+ @endforeach
+
+
+
+
+
{{-- Unscored Entries --}}
+ Unscored Entries
+
+
+
+ Draw #
+ ID
+ Student
+
+
+
+
+ @foreach($unscored_entries as $entry)
+
+ {{ $entry->draw_number }}
+ {{ $entry->id }}
+
+ {{ $entry->student->full_name() }}
+ {{ $entry->student->school->name }}
+
+
+
+ Record No Show
+
+
+
+ @endforeach
+
+
+
+
+
{{-- No Show Entries --}}
+ No Show Entries
+
+
+
+ Draw #
+ ID
+ Student
+
+
+
+ @foreach($noshow_entries as $entry)
+
+ {{ $entry->draw_number }}
+ {{ $entry->id }}
+
+ {{ $entry->student->full_name() }}
+ {{ $entry->student->school->name }}
+
+
+ @endforeach
+
+
+
+
+
{{-- Failed Prelim Entries --}}
+ Failed Prelim Entries
+
+
+
+ Draw #
+ ID
+ Student
+
+
+
+ @foreach($failed_prelim_entries as $entry)
+
+ {{ $entry->draw_number }}
+ {{ $entry->id }}
+
+ {{ $entry->student->full_name() }}
+ {{ $entry->student->school->name }}
+
+
+ @endforeach
+
+
+
+
+
+
+
+
{{-- Right Column Wrapper --}}
+ @if($audition->hasFlag('seats_published'))
+
+ Published Results
+
+ @php($previousEnsemble = '')
+ @foreach($publishedSeats as $seat)
+ @if($previousEnsemble !== $seat->ensemble->name)
+ @php($previousEnsemble = $seat->ensemble->name)
+ {{ $seat->ensemble->name }}
+ @endif
+
+
+
{{ $seat->seat }}. {{ $seat->student->full_name() }}
+
{{ $seat->student->school->name }}
+
+
+ @endforeach
+
+
+
+
+ Unpublish Results
+
+ @else
+ @if($canSeat)
+ @if($seatingProposal)
+
+
+ Seating Proposal
+ Results are not yet published
+
+ @foreach($seatingProposal as $proposedEnsemble)
+ {{ $proposedEnsemble['ensemble_name'] }}
+
+ @if(isset($proposedEnsemble['seats']))
+ @foreach($proposedEnsemble['seats'] as $seat)
+ {{ $seat['seat'] }}
+ . {{ $seat['entry_name'] }}
+ @endforeach
+ @endif
+
+ @endforeach
+
+ Clear Draft
+
+
+ Publish
+
+
+ @else
+
+
+ Seat Audition
+ Choose how many entries to seat in each ensemble
+
+
+ @foreach($audition->SeatingLimits()->where('maximum_accepted','>',0)->get() as $limit)
+
+ {{$limit->ensemble->name}}
+ @for($n = 0; $n< $limit->maximum_accepted; $n++)
+
+ @endfor
+
+
+ @endforeach
+ Draft Seats
+
+
+ @endif
+ @else
+
+ @if($unscored_entries->count() > 0)
+
+ Cannot seat the audition while entries are unscored.
+
+ @endif
+
+ @if($auditionHasUnresolvedDoublers)
+
+ Cannot seat the audition while there are unresolved doublers.
+
+
+ Decline
+
+
+ @endif
+
+ @endif
+ @endif
+
-{{--
--}}
diff --git a/resources/views/tabulation/auditionSeatingOLD.blade.php b/resources/views/tabulation/auditionSeatingOLD.blade.php
new file mode 100644
index 0000000..065ae86
--- /dev/null
+++ b/resources/views/tabulation/auditionSeatingOLD.blade.php
@@ -0,0 +1,30 @@
+@inject('doublerService','App\Services\DoublerService')
+@php
+ $blockSeating = []
+@endphp
+
+ Audition Seating - {{ $audition->name }}
+
+
+
+ @include('tabulation.auditionSeating-results-table')
+
+
+ @include($rightPanel['view'])
+
+{{--
--}}
+{{-- @if($audition->hasFlag('seats_published'))--}}
+{{-- @include('tabulation.auditionSeating-show-published-seats')--}}
+{{-- @elseif(! $auditionComplete)--}}
+{{-- @include('tabulation.auditionSeating-unable-to-seat-card')--}}
+{{-- @else--}}
+{{-- @include('tabulation.auditionSeating-fill-seats-form')--}}
+{{-- @include('tabulation.auditionSeating-show-proposed-seats')--}}
+{{-- @endif--}}
+
+
+{{--
--}}
+
+
+
+
diff --git a/routes/tabulation.php b/routes/tabulation.php
index fe60a38..b566875 100644
--- a/routes/tabulation.php
+++ b/routes/tabulation.php
@@ -7,7 +7,6 @@ use App\Http\Controllers\Tabulation\DoublerDecisionController;
use App\Http\Controllers\Tabulation\EntryFlagController;
use App\Http\Controllers\Tabulation\ScoreController;
use App\Http\Controllers\Tabulation\SeatAuditionFormController;
-use App\Http\Controllers\Tabulation\SeatingPublicationController;
use App\Http\Controllers\Tabulation\SeatingStatusController;
use App\Http\Middleware\CheckIfCanTab;
use Illuminate\Support\Facades\Route;
@@ -42,9 +41,17 @@ Route::middleware(['auth', 'verified', CheckIfCanTab::class])->group(function ()
// Seating Routes
Route::prefix('seating/')->group(function () {
Route::get('/', SeatingStatusController::class)->name('seating.status');
- Route::match(['get', 'post'], '/{audition}', SeatAuditionFormController::class)->name('seating.audition');
- Route::post('/{audition}/publish', [SeatingPublicationController::class, 'publishSeats'])->name('seating.audition.publish');
- Route::post('/{audition}/unpublish', [SeatingPublicationController::class, 'unpublishSeats'])->name('seating.audition.unpublish');
+ Route::get('/{audition}', [SeatAuditionFormController::class, 'showForm'])->name('seating.audition');
+ Route::post('/{audition}/draftSeats', [SeatAuditionFormController::class, 'draftSeats'])->name('seating.audition.draftSeats');
+ Route::post('/{audition}/clearDraft', [SeatAuditionFormController::class, 'clearDraft'])->name('seating.audition.clearDraft');
+ Route::post('/{audition}/{entry}/decline', [SeatAuditionFormController::class, 'declineSeat'])->name('seating.audition.decline');
+ Route::post('/{audition}/mass_decline', [SeatAuditionFormController::class, 'massDecline'])->name('seating.audition.mass_decline');
+ Route::post('/{audition}/{entry}/accept', [SeatAuditionFormController::class, 'acceptSeat'])->name('seating.audition.accept');
+ Route::post('/{audition}/{entry}/noshow', [SeatAuditionFormController::class, 'noshow'])->name('seating.audition.noshow');
+ Route::post('/{audition}/publish',
+ [SeatAuditionFormController::class, 'publishSeats'])->name('seating.audition.publishSeats');
+ Route::post('/{audition}/unpublish',
+ [SeatAuditionFormController::class, 'unpublishSeats'])->name('seating.audition.unpublishSeats');
});
// Advancement Routes
diff --git a/routes/web.php b/routes/web.php
index 8ca8d03..8221a7c 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -12,7 +12,7 @@ require __DIR__.'/tabulation.php';
require __DIR__.'/user.php';
require __DIR__.'/nominationEnsemble.php';
-Route::get('/test', [TestController::class, 'flashTest'])->middleware('auth', 'verified');
+Route::get('/test', [TestController::class, 'test'])->middleware('auth', 'verified');
Route::view('/home', 'welcome')->middleware('guest')->name('landing');
Route::view('/', 'landing')->name('home');