Added member state section to the people.show view.
Updated account section of the same view.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<a href='/people'>Zurück</a>
|
||||
<h2>Stammdaten</h2>
|
||||
<table border='1'>
|
||||
<tr>
|
||||
@@ -41,11 +42,38 @@
|
||||
<td>{{ $person->mobile }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Geburtstage</td>
|
||||
<td>Geburtstag</td>
|
||||
<td>{{ $person->date_of_birth }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@if ($person->title != 'Firma')
|
||||
<h2>Mitgliederdaten</h2>
|
||||
@if ($person->wasMember())
|
||||
<table border='1'>
|
||||
<tr>
|
||||
<th>Eintrittsdatum</th>
|
||||
<th>Ausitrittsdatum</th>
|
||||
</tr>
|
||||
|
||||
@foreach ($person->memberStates as $memberState)
|
||||
<tr>
|
||||
<td>{{ $memberState->joining_date }}</td>
|
||||
<td>{{ $memberState->leaving_date }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
@if ($person->isMember())
|
||||
<p>{{ $person->fullName() }} ist
|
||||
aktives Mitglied.</p>
|
||||
@endif
|
||||
|
||||
<p>Gesamtmitgliedszeit: {{ formatAmount($person->activeTime()) }} Jahre.</p>
|
||||
@else
|
||||
<p>{{ $person->fullName() }} war nie Mitglied.</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<h2>Konto<h2>
|
||||
<table border='1'>
|
||||
@@ -55,13 +83,17 @@
|
||||
<th>Zweck</th>
|
||||
<th>Soll</th>
|
||||
<th>Ist</th>
|
||||
<th>Differenz</th>
|
||||
</tr>
|
||||
@foreach ($targets as $target)
|
||||
@foreach ($person->targets as $target)
|
||||
<tr>
|
||||
<td>></>
|
||||
<td>{{ $target->date }}</td>
|
||||
<td>{{ $target->reference }}</td>
|
||||
<td>{{ $target->amount }}</td>
|
||||
<td align='right'>{{ formatAmount($target->signedAmount()) }}</td>
|
||||
<td align='right'>{{ formatAmount($target->actualsSum()) }}</td>
|
||||
<td align='right'>{{ formatAmount($target->difference()) }}</td>
|
||||
<tr>
|
||||
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user