diff --git a/app/Http/Controllers/Judging/JudgingController.php b/app/Http/Controllers/Judging/JudgingController.php index 38f9849..4ca72eb 100644 --- a/app/Http/Controllers/Judging/JudgingController.php +++ b/app/Http/Controllers/Judging/JudgingController.php @@ -41,6 +41,11 @@ class JudgingController extends Controller return redirect()->route('judging.index')->with('error', 'You are not assigned to judge that audition'); } $entries = Entry::where('audition_id', '=', $audition->id)->orderBy('draw_number')->with('audition')->get(); + + // If there is a prelim audition, only show entries that have passed the prelim + if ($audition->prelimDefinition) { + $entries = $entries->reject(fn ($entry) => ! $entry->hasFlag('passed_prelim')); + } $subscores = $audition->scoringGuide->subscores()->orderBy('display_order')->get(); $votes = JudgeAdvancementVote::where('user_id', Auth::id())->get();