The views bookings.index and people.show now use the formatDate and formatAmount

helpers.
This commit is contained in:
Lukas Halbritter
2018-10-01 17:20:19 +02:00
parent 1de0126663
commit e80481f860
2 changed files with 20 additions and 19 deletions
+9 -9
View File
@@ -33,7 +33,7 @@
<td>Saldo</td>
<td></td>
<td></td>
<td>{{ formatAmount($sums[$month - 1]['balance']) }}</td>
<td>{!! formatAmount($sums[$month - 1]['balance']) !!}</td>
<td></td>
<td></td>
</tr>
@@ -45,17 +45,17 @@
@endif
</td>
<td>{{ $booking->id }}</td>
<td>{{ $booking->date }}</td>
<td>{{ formatDate($booking->date) }}</td>
<td>{{ $booking->reference }}</td>
<td>{{ $booking->person_or_company }}</td>
<td align='right'>
@if ($booking->signedAmount() < 0)
{{ formatAmount($booking->signedAmount()) }}
{!! formatAmount($booking->signedAmount()) !!}
@endif
</td>
<td align='right'>
@if ($booking->signedAmount() >= 0)
{{ formatAmount($booking->signedAmount()) }}
{!! formatAmount($booking->signedAmount()) !!}
@endif
</td>
<td>
@@ -80,12 +80,12 @@
<td></td>
<td align='right'>
@if ($subBooking->signedAmount() < 0)
{{ formatAmount($subBooking->signedAmount()) }}
{!! formatAmount($subBooking->signedAmount()) !!}
@endif
</td>
<td align='right'>
@if ($subBooking->signedAmount() >= 0)
{{ formatAmount($subBooking->signedAmount()) }}
{!! formatAmount($subBooking->signedAmount()) !!}
@endif
</td>
<td>
@@ -107,8 +107,8 @@
</td>
<td>Monatsabschluss</td>
<td></td>
<td>{{ formatAmount($sums[$month]['expeditures']) }}</td>
<td>{{ formatAmount($sums[$month]['incomes']) }}</td>
<td>{!! formatAmount($sums[$month]['expeditures']) !!}</td>
<td>{!! formatAmount($sums[$month]['incomes']) !!}</td>
<td></td>
<td></td>
</tr>
@@ -120,7 +120,7 @@
</td>
<td>Saldo</td>
<td></td>
<td>{{ formatAmount($sums[$month]['balance']) }}</td>
<td>{!! formatAmount($sums[$month]['balance']) !!}</td>
<td></td>
<td></td>
<td></td>