25 lines
931 B
PHP
25 lines
931 B
PHP
@php use App\Models\Audition;use App\Models\School;use App\Models\SchoolEmailDomain;use App\Models\ScoringGuide;use App\Models\User;use App\Settings;use Illuminate\Support\Facades\Auth;use Illuminate\Support\Facades\DB;use Illuminate\Support\Facades\Session; @endphp
|
|
<x-layout.app>
|
|
<x-slot:page_title>Test Page</x-slot:page_title>
|
|
|
|
@php
|
|
$auditions = Audition::with('entries')->get();
|
|
@endphp
|
|
@foreach($auditions as $audition)
|
|
{{ $audition->name }} has {{ $audition->entries->count() }} entries.<br>
|
|
@if($audition->has_complete_draw())
|
|
<strong class="text-green-600">Draw is complete.</strong>
|
|
@endif
|
|
|
|
@if($audition->has_partial_draw())
|
|
<strong class="text-yellow-600">Has a partial draw.</strong>
|
|
@endif
|
|
|
|
@if($audition->has_no_draw())
|
|
<strong class="text-red-600">Has no draw.</strong>
|
|
@endif
|
|
<hr><hr>
|
|
@endforeach
|
|
|
|
</x-layout.app>
|