Added Methods, routes and Views for VeranstaltungController
This commit is contained in:
@@ -2,7 +2,32 @@
|
||||
@section('title', 'Veranstaltungen')
|
||||
|
||||
@section('content')
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">Name</th>
|
||||
<th class="text-center">Datum</th>
|
||||
<th class="text-center">Zeit</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach ($veranstaltungen as $v)
|
||||
<li>{{ $v->name }} | {{ $v->beginn }} </li>
|
||||
<tr>
|
||||
<td>{{ $v->name }}</td>
|
||||
<td>{{ $v->beginn->format('d.m.Y') }}</td>
|
||||
<td>{{ $v->beginn->format('H:i') }}</td>
|
||||
<td>
|
||||
<a class="btn btn-link m-0" href="{{ route('veranstaltung.show', [$v]) }}">Details</a>
|
||||
<a class="btn btn-link m-0" href="{{ route('veranstaltung.edit', [$v]) }}">Bearbeiten</a>
|
||||
<a class="btn btn-link m-0" href="{{ route('veranstaltung.enter', [$v]) }}">Eintragen</a>
|
||||
<form method="POST" action="{{ route('veranstaltung.destroy', $v) }}">
|
||||
{!! method_field('delete') !!}
|
||||
{!! csrf_field() !!}
|
||||
<button class="btn btn-link text-danger">Löschen</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</table>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user