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

28 lines
1020 B
PHP

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