Added views for indexing all people and showing a single one.

Added a method to get all (sub-)bookings associated with a person-target.
This commit is contained in:
Lukas Halbritter
2018-09-09 10:01:37 +02:00
parent 50acdbd71e
commit 0608094039
3 changed files with 79 additions and 2 deletions
+3 -1
View File
@@ -24,7 +24,9 @@
<td>{{ $person->email }}</td>
<td>{{ $person->mobile }}</td>
<td>{{ $person->phone }}</td>
<td></td>
<td>
<a href='/people/{{ $person-> id }}'>Anzeigen</a>
</td>
</tr>
@endforeach
</table>
+67
View File
@@ -0,0 +1,67 @@
<h2>Stammdaten</h2>
<table border='1'>
<tr>
<td>ID</td>
<td>{{ $person->id }}</td>
</tr>
<tr>
<td>Anrede</td>
<td>{{ $person->title }}</td>
</tr>
<tr>
<td>Name / Firma</td>
<td>{{ $person->name_or_company }}</td>
</tr>
<tr>
<td>Vorname</td>
<td>{{ $person->surname }}</td>
</tr>
<tr>
<td>Straße</td>
<td>{{ $person->street }}</td>
</tr>
<tr>
<td>Postleitzahl</td>
<td>{{ $person->postal_code }}</td>
</tr>
<tr>
<td>Ort</td>
<td>{{ $person->city }}</td>
</tr>
<tr>
<td>E-Mail</td>
<td>{{ $person->email }}</td>
</tr>
<tr>
<td>Telefon</td>
<td>{{ $person->phone }}</td>
</tr>
<tr>
<td>Mobil</td>
<td>{{ $person->mobile }}</td>
</tr>
<tr>
<td>Geburtstage</td>
<td>{{ $person->date_of_birth }}</td>
</tr>
</table>
<h2>Konto<h2>
<table border='1'>
<tr>
<th>&nbsp;</th>
<th>Datum</th>
<th>Zweck</th>
<th>Soll</th>
<th>Ist</th>
</tr>
@foreach ($targets as $target)
<tr>
<td>></>
<td>{{ $target->date }}</td>
<td>{{ $target->reference }}</td>
<td>{{ $target->amount }}</td>
<tr>
@endforeach
</table>