From b2d66eb1b871d23d98abc0cb766a031018748463 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 14 Oct 2025 18:20:09 -0500 Subject: [PATCH] If an audition has a prelim, only show finals judges entries that have passed prelims. --- app/Http/Controllers/Judging/JudgingController.php | 5 +++++ 1 file changed, 5 insertions(+) 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();