40 lines
1.3 KiB
PHP
40 lines
1.3 KiB
PHP
<x-card.card>
|
|
<x-card.heading>
|
|
Scoring Guides
|
|
<x-slot:subheading>Each audition will be assigned a scoring guide.</x-slot:subheading>
|
|
</x-card.heading>
|
|
<x-table.table>
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Name</x-table.th>
|
|
<x-table.th spacer_only></x-table.th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<x-table.body>
|
|
@foreach($guides as $guide)
|
|
@if($guide->id == 0)
|
|
@continue
|
|
@endif
|
|
<tr>
|
|
<x-table.td>{{ $guide->name }}</x-table.td>
|
|
<x-table.td class="text-right text-indigo-600"><a href="/admin/scoring/guides/{{ $guide->id }}/edit">Edit</a></x-table.td>
|
|
{{-- TODO add a link to delete if the guide is not in use--}}
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
<tfoot>
|
|
<tr>
|
|
<x-form.form method="POST" action="/admin/scoring/guides" class="!px-0 !py-0">
|
|
<x-table.td>
|
|
<x-form.field name="name" label_text="Add New Scoring Guide" />
|
|
</x-table.td>
|
|
<x-table.td>
|
|
<x-form.button class="mt-6">Create</x-form.button>
|
|
</x-table.td>
|
|
</x-form.form>
|
|
</tr>
|
|
</tfoot>
|
|
</x-table.table>
|
|
</x-card.card>
|