39 lines
1.3 KiB
PHP
39 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 }} <span class="text-xs text-gray-400">{{ $guide->subscores_count }} subscores</span></x-table.td>
|
|
<x-table.td class="text-right text-indigo-600"><a href="{{ route('admin.scoring.edit', $guide) }}">Edit</a></x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
<tfoot>
|
|
<tr>
|
|
<x-form.form method="POST" action="{{ route('admin.scoring.store') }}" 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>
|