Added a PeopleController.

Added a basic route to the index page of all people.
Added views and controller for this purpose.
This commit is contained in:
Lukas Halbritter
2018-09-07 22:50:36 +02:00
parent 0d44875eb3
commit cdba55315d
5 changed files with 57 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
<table border='1'>
<tr>
<th>ID</th>
<th>Titel</th>
<th>Name / Firma</th>
<th>Vorname</th>
<th>Straße</th>
<th>PLZ</th>
<th>Ort</th>
<th>E-Mail</th>
<th>Handy</th>
<th>Telefon</th>
<th>Aktionen</th>
</tr>
@foreach ($people as $person)
<tr>
<td>{{ $person->id }}</td>
<td>{{ $person->title }}</td>
<td>{{ $person->name_or_company }}</td>
<td>{{ $person->surname }}</td>
<td>{{ $person->street }}</td>
<td>{{ $person->postal_code }}</td>
<td>{{ $person->city }}</td>
<td>{{ $person->email }}</td>
<td>{{ $person->mobile }}</td>
<td>{{ $person->phone }}</td>
<td></td>
</tr>
@endforeach
</table>