44 lines
2.0 KiB
PHP
44 lines
2.0 KiB
PHP
<x-layout.admin>
|
|
<x-form.button href="{{ route('admin.etudes.create') }}" type="link">Add Etude</x-form.button>
|
|
<x-card class="mt-3">
|
|
<x-slot:header class="bg-brand-600!">Etudes</x-slot:header>
|
|
<x-slot:body class="bg-white border border-brand-600">
|
|
<x-table>
|
|
<x-slot:header>
|
|
<x-table.th>Ensemble</x-table.th>
|
|
<x-table.th>Set</x-table.th>
|
|
<x-table.th>Instrument</x-table.th>
|
|
<x-table.th>Link</x-table.th>
|
|
<x-table.th>Original Filename</x-table.th>
|
|
<x-table.th>Size</x-table.th>
|
|
<x-table.th></x-table.th>
|
|
</x-slot:header>
|
|
@foreach($etudes as $etude)
|
|
<tr>
|
|
<x-table.td>{{ $etude->auditionedEnsemble->name }}</x-table.td>
|
|
<x-table.td>{{ $etude->set }}</x-table.td>
|
|
<x-table.td>{{ $etude->instrument->instrument }}</x-table.td>
|
|
<x-table.td>
|
|
<a href="/{{ $etude->file_path }}" target="_new">
|
|
<x-heroicon-o-arrow-down-tray class="w-5"/>
|
|
</a>
|
|
</x-table.td>
|
|
<x-table.td>{{ $etude->original_filename }}</x-table.td>
|
|
<x-table.td>{{ $etude->human_readable_file_size }}</x-table.td>
|
|
<x-table.td>
|
|
<x-form method="DELETE" action="{{ route('admin.etudes.destroy', $etude) }}">
|
|
<button type="submit">
|
|
<x-heroicon-o-trash class="w-5"/>
|
|
</button>
|
|
</x-form>
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table>
|
|
<div class="mt-3 px-4">
|
|
{{ $etudes->links() }}
|
|
</div>
|
|
</x-slot:body>
|
|
</x-card>
|
|
</x-layout.admin>
|