auditionadmin/resources/views/admin/entries/prepare_draw.blade.php

32 lines
1.2 KiB
PHP

<x-layout.app>
<x-slot:page_title>Run Draw</x-slot:page_title>
<form method="post" action="/admin/auditions/run_draw">
@csrf
<div class="mx-auto max-w-lg mb-3">
<x-form.button>Run Draw for Selected Auditions</x-form.button>
</div>
<div class="flex w-full grow flex-wrap">
@if($nodraw_auditions->count() > 0)
<x-draw-page.audition-switches :auditions="$nodraw_auditions">
These auditions have no draw
</x-draw-page.audition-switches>
@endif
@if($partial_draw_auditions->count() > 0)
<x-draw-page.audition-switches :auditions="$partial_draw_auditions">
These auditions have a partial draw
</x-draw-page.audition-switches>
@endif
@if($drawn_auditions->count() > 0)
<x-draw-page.audition-switches :auditions="$drawn_auditions">
These auditions have already been drawn
</x-draw-page.audition-switches>
@endif
</div>
</form>
</x-layout.app>
{{--TODO when an entry is made anywhere in the system, there needs to be a check if a draw needs to be run--}}