Bulletinboard/resources/views/occupation/index.blade.php

28 lines
1019 B
PHP

<x-layout>
<div class="container">
<a href="{{ @route("admin-create-occupation") }}">Opret Ny</a>
<table class="table">
<tr>
<th>Titel</th>
<th>Rediger</th>
<th>Slet</th>
</tr>
@foreach($occupations as $occupation)
<tr>
<td>{{ $occupation->name }}</td>
<td>
<a href="/admin/occupations/{{ $occupation->id }}/edit"><ion-icon name="pencil-outline"></ion-icon></a>
</td>
<td>
<form action="/admin/occupations/{{ $occupation->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>