44 lines
2.0 KiB
PHP
44 lines
2.0 KiB
PHP
<x-card.card class="mb-6 mx-auto max-w-lg">
|
|
<x-card.heading>
|
|
Ensembles for {{ $event->name }}
|
|
<x-slot:subheading>Click name to rename. Drag handle to reorder.</x-slot:subheading>
|
|
</x-card.heading>
|
|
<x-table.table class="ml-3 sortable-table" id="event-{{$event->id}}">
|
|
|
|
<thead>
|
|
<tr>
|
|
<x-table.td> </x-table.td>
|
|
<x-table.th>Code</x-table.th>
|
|
<x-table.th>Name</x-table.th>
|
|
<x-table.th> </x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($event->ensembles as $ensemble)
|
|
<tr data-id="{{ $ensemble->id }}">
|
|
<x-table.td class="handle">
|
|
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
<path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M5 7h14M5 12h14M5 17h14"/>
|
|
</svg>
|
|
|
|
</x-table.td>
|
|
{{-- <x-table.td class="handle"><i class="fas fa-bars"></i></x-table.td>--}}
|
|
<x-table.td>{{ $ensemble->code }}</x-table.td>
|
|
{{-- <x-table.td>{{ $ensemble->name }}</x-table.td>--}}
|
|
<x-table.td>
|
|
@include('admin.ensembles.index-rename-modal')
|
|
</x-table.td>
|
|
<x-table.td>
|
|
<form method="POST" action="{{ route('admin.ensembles.destroy', ['ensemble' => $ensemble->id]) }}">
|
|
@csrf
|
|
@method('DELETE')
|
|
<button class="text-red-500 text-sm" type="submit">Delete</button>
|
|
{{-- TODO: Remove delete button if entries are seated in an ensemble--}}
|
|
</form>
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
</x-card.card>
|