42 lines
1.7 KiB
PHP
42 lines
1.7 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>Entry Administration</x-slot:page_title>
|
|
|
|
<x-card.card>
|
|
<x-table.table with_title_area>
|
|
<x-slot:title class="ml-3">Entries</x-slot:title>
|
|
<x-slot:subtitle class="ml-3">Click id to edit</x-slot:subtitle>
|
|
<x-slot:title_block_right class="mr-3">
|
|
<x-form.button href="/admin/entries/create">New Entry</x-form.button>
|
|
</x-slot:title_block_right>
|
|
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>ID</x-table.th>
|
|
<x-table.th>Audition</x-table.th>
|
|
<x-table.th>Student</x-table.th>
|
|
<x-table.th>Grade</x-table.th>
|
|
<x-table.th>School</x-table.th>
|
|
<x-table.th>Entry Date</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($entries as $entry)
|
|
<tr>
|
|
<x-table.td><a href="/admin/entries/{{ $entry->id }}/edit"> {{ $entry->id }} </a></x-table.td>
|
|
<x-table.td>{{ $entry->audition->name }}</x-table.td>
|
|
<x-table.td>{{ $entry->student->full_name() }}</x-table.td>
|
|
<x-table.td>{{ $entry->student->grade }}</x-table.td>
|
|
<x-table.td>{{ $entry->student->school->name }}</x-table.td>
|
|
<x-table.td>{{ $entry->created_at->format('m/d/Y g:i A') }}</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
|
|
</x-card.card>
|
|
<div class="mt-3 mx-3">
|
|
{{ $entries->links('vendor.pagination.simple-audition') }}
|
|
</div>
|
|
</x-layout.app>
|
|
{{--TODO add options to filter the page--}}
|