45 lines
1.9 KiB
PHP
45 lines
1.9 KiB
PHP
<x-layout.app>
|
|
<x-card.card class="mx-auto max-w-2xl">
|
|
<x-card.heading>Create Entry</x-card.heading>
|
|
<x-form.form method="POST" action="/admin/entries">
|
|
<x-form.body-grid columns="3">
|
|
|
|
<x-form.select name="student_id" colspan="2">
|
|
<x-slot:label>Student</x-slot:label>
|
|
@foreach ($students as $student)
|
|
|
|
<option value="{{ $student->id }}">{{ $student->full_name(true) }} - {{ $student->school->name }} (Grade {{ $student->grade }})</option>
|
|
@endforeach
|
|
|
|
</x-form.select><x-form.select name="audition_id" colspan="1">
|
|
<x-slot:label>Audition</x-slot:label>
|
|
@foreach ($auditions as $audition)
|
|
|
|
<option value="{{ $audition->id }}"> {{ $audition->name }}</option>
|
|
@endforeach
|
|
</x-form.select>
|
|
|
|
@if(auditionSetting('advanceTo'))
|
|
<div class="col-span-3 align-top">
|
|
<x-form.checkbox name="for_seating"
|
|
label="Enter for {{ auditionSetting('auditionAbbreviation') }}"
|
|
checked />
|
|
</div>
|
|
<div class="col-span-3 align-top">
|
|
<x-form.checkbox name="for_advancement"
|
|
label="Enter for {{ auditionSetting('advanceTo') }}"
|
|
checked />
|
|
</div>
|
|
@else
|
|
<input type="hidden" name="for_seating" value="on">
|
|
@endif
|
|
</x-form.body-grid>
|
|
<x-form.footer>
|
|
<x-form.button>Create Entry</x-form.button>
|
|
</x-form.footer>
|
|
</x-form.form>
|
|
</x-card.card>
|
|
</x-layout.app>
|
|
|
|
{{--TODO apply javascript to only show appropriate auditions for the students grade--}}
|