mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Tiny chart improvement because I said so
This commit is contained in:
parent
c3990ac32f
commit
07011ec5f7
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user