28 lines
979 B
PHP
28 lines
979 B
PHP
|
<x-layout>
|
||
|
<div class="container">
|
||
|
<a href="{{ @route("admin-create-state") }}">Opret Ny</a>
|
||
|
<table class="table">
|
||
|
<tr>
|
||
|
<th>Titel</th>
|
||
|
<th>Rediger</th>
|
||
|
<th>Slet</th>
|
||
|
</tr>
|
||
|
@foreach($states as $state)
|
||
|
<tr>
|
||
|
<td>{{ $state->name }}</td>
|
||
|
<td>
|
||
|
<a href="/admin/states/{{ $state->id }}/edit"><ion-icon name="pencil-outline"></ion-icon></a>
|
||
|
</td>
|
||
|
<td>
|
||
|
<form action="/admin/states/{{ $state->id }}/" method="post">
|
||
|
@method('delete')
|
||
|
@csrf
|
||
|
<button type="submit"><ion-icon name="trash-outline"></ion-icon></button>
|
||
|
</form>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach
|
||
|
</table>
|
||
|
</div>
|
||
|
</x-layout>
|