From 22e56adebe672b44c1a6abcd37f50da4194c2352 Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 25 Jun 2024 02:38:15 -0500 Subject: [PATCH] Add progress bar to status page --- resources/views/tabulation/status.blade.php | 44 +++++++++++++++------ 1 file changed, 32 insertions(+), 12 deletions(-) diff --git a/resources/views/tabulation/status.blade.php b/resources/views/tabulation/status.blade.php index 8be7115..62fedea 100644 --- a/resources/views/tabulation/status.blade.php +++ b/resources/views/tabulation/status.blade.php @@ -1,6 +1,6 @@ Audition Status - + Auditions @@ -8,22 +8,42 @@ Audition - Scoring Status Scoring Complete + Seats Published @foreach($auditions as $audition) - - - {{ $audition->name }} - - {{ $audition->scored_entries_count }} / {{ $audition->entries_count }} Scored - - @if( $audition->scored_entries_count == $audition->entries_count) - - @endif - + @php + if($audition->entries_count > 0) { + $percent = round(($audition->scored_entries_count / $audition->entries_count) * 100); + + } + @endphp + + + + + {{-- {{ $audition->scored_entries_count }} / {{ $audition->entries_count }} Scored--}} +
+ {{ $audition->name }} + {{ $audition->scored_entries_count }} / {{ $audition->entries_count }} Scored +
+
+
+
+
+
+ + @if( $audition->scored_entries_count == $audition->entries_count) + + @endif + + + @if( $audition->hasFlag('seats_published')) + + @endif + @endforeach