Added delete link in the people index.

This commit is contained in:
Lukas Halbritter
2018-09-25 15:10:12 +02:00
parent eef1ecca6b
commit d71ceb1c77
+6 -1
View File
@@ -2,6 +2,10 @@
@section('title', 'Personen') @section('title', 'Personen')
@section('subnav')
<a href='/people/create'>Neue Person</a>
@endsection
@section('content') @section('content')
<table border='1'> <table border='1'>
<tr> <tr>
@@ -31,7 +35,8 @@
<td>{{ $person->phone }}</td> <td>{{ $person->phone }}</td>
<td> <td>
<a href='/people/{{ $person->id }}'>Anzeigen</a><br /> <a href='/people/{{ $person->id }}'>Anzeigen</a><br />
<a href='/people/{{ $person-> id }}/edit'>Bearbeiten</a> <a href='/people/{{ $person->id }}/edit'>Bearbeiten</a><br />
<a href='/people/{{ $person->id }}/delete'>Löschen</a>
</td> </td>
</tr> </tr>
@endforeach @endforeach