mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Tiny chart improvement because I said so
This commit is contained in:
@@ -9,13 +9,23 @@
|
||||
<th>Start of month</th>
|
||||
<th>Current balance</th>
|
||||
<th>Spent</th>
|
||||
<th>Earned</th>
|
||||
</tr>
|
||||
@foreach($accounts as $account)
|
||||
<tr>
|
||||
<td><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></td>
|
||||
<td>{!! Amount::format($account->startBalance) !!}</td>
|
||||
<td>{!! Amount::format($account->endBalance) !!}</td>
|
||||
<td>{!! Amount::format($account->startBalance - $account->endBalance,false) !!}</td>
|
||||
<td>
|
||||
@if($account->startBalance - $account->endBalance > 0)
|
||||
{!! Amount::format($account->startBalance - $account->endBalance) !!}
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
@if($account->startBalance - $account->endBalance <= 0)
|
||||
{!! Amount::format(($account->startBalance - $account->endBalance)*-1) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user