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