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>
|
<h2>Stammdaten</h2>
|
||||||
<table border='1'>
|
<table border='1'>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -41,11 +42,38 @@
|
|||||||
<td>{{ $person->mobile }}</td>
|
<td>{{ $person->mobile }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Geburtstage</td>
|
<td>Geburtstag</td>
|
||||||
<td>{{ $person->date_of_birth }}</td>
|
<td>{{ $person->date_of_birth }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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>
|
<h2>Konto<h2>
|
||||||
<table border='1'>
|
<table border='1'>
|
||||||
@@ -55,13 +83,17 @@
|
|||||||
<th>Zweck</th>
|
<th>Zweck</th>
|
||||||
<th>Soll</th>
|
<th>Soll</th>
|
||||||
<th>Ist</th>
|
<th>Ist</th>
|
||||||
|
<th>Differenz</th>
|
||||||
</tr>
|
</tr>
|
||||||
@foreach ($targets as $target)
|
@foreach ($person->targets as $target)
|
||||||
<tr>
|
<tr>
|
||||||
<td>></>
|
<td>></>
|
||||||
<td>{{ $target->date }}</td>
|
<td>{{ $target->date }}</td>
|
||||||
<td>{{ $target->reference }}</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>
|
<tr>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user