auditionadmin/resources/views/admin/scoring/index.blade.php

42 lines
1.7 KiB
PHP

<x-layout.app>
<x-slot:page_title>Scoring Rules</x-slot:page_title>
<div class="mx-auto max-w-lg">
<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)
<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>
</div>
</x-layout.app>