40 lines
1.9 KiB
PHP
40 lines
1.9 KiB
PHP
<x-modal-body class="relative">
|
|
<x-slot:title>Edit Subscore</x-slot:title>
|
|
<x-table.table>
|
|
<thead><tr>
|
|
<x-table.th>Name</x-table.th>
|
|
<x-table.th>Max Score</x-table.th>
|
|
<x-table.th>Weight</x-table.th>
|
|
@if(auditionSetting('advanceTo'))
|
|
<x-table.th>For Seating</x-table.th>
|
|
<x-table.th>For {{ auditionSetting('advanceTo') }}</x-table.th>
|
|
@endif
|
|
<x-table.th spacer_only></x-table.th>
|
|
</tr></thead>
|
|
<x-table.body>
|
|
<x-form.form method="PATCH" action="{{ route('admin.scoring.subscore_update',['guide'=> $guide->id,'subscore'=>$subscore->id]) }}">
|
|
<x-table.td><x-form.field name="name" value="{{ $subscore->name }}"/></x-table.td>
|
|
<x-table.td><x-form.field name="max_score" type="number" value="{{ $subscore->max_score }}" /></x-table.td>
|
|
<x-table.td><x-form.field name="weight" type="number" value="{{ $subscore->weight }}" /></x-table.td>
|
|
|
|
@if(auditionSetting('advanceTo'))
|
|
<x-table.td>
|
|
<x-form.toggle-checkbox name="for_seating" checked="{{ $subscore->for_seating }}"/>
|
|
</x-table.td>
|
|
<x-table.td>
|
|
<x-form.toggle-checkbox name="for_advance" checked="{{ $subscore->for_advance }}" />
|
|
</x-table.td>
|
|
@endif
|
|
<td><x-table.button>Save</x-table.button></td>
|
|
</x-form.form>
|
|
</x-table.body>
|
|
</x-table.table>
|
|
<div class="border-t relative pb-12">
|
|
<form method="POST" action="{{ route('admin.scoring.subscore_destroy', ['guide' => $guide->id, 'subscore' => $subscore->id]) }}">
|
|
@csrf
|
|
@method('DELETE')
|
|
<x-form.red-trash-button class="mt-3 absolute bottom-0 right-0" />
|
|
</form>
|
|
</div>
|
|
</x-modal-body>
|