mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 19:01:39 +00:00
Hide accounts with no activity.
This commit is contained in:
@@ -60,15 +60,13 @@
|
|||||||
$accountSums = [];
|
$accountSums = [];
|
||||||
?>
|
?>
|
||||||
@foreach($accounts as $account)
|
@foreach($accounts as $account)
|
||||||
<th><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a>
|
@if($account->hide === false)
|
||||||
|
<th><a href="{{route('accounts.show',$account->id)}}">{{{$account->name}}}</a></th>
|
||||||
@if($account->hide === true)
|
|
||||||
<small>(hidden)</small>
|
|
||||||
@endif
|
@endif
|
||||||
</th>
|
|
||||||
<?php
|
<?php
|
||||||
$accountSums[$account->id] = 0;
|
$accountSums[$account->id] = 0;
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
<th colspan="2">
|
<th colspan="2">
|
||||||
Left in budget
|
Left in budget
|
||||||
@@ -80,6 +78,7 @@
|
|||||||
<td>{!! Amount::format($budget['amount']) !!}</td>
|
<td>{!! Amount::format($budget['amount']) !!}</td>
|
||||||
<?php $spent = 0;?>
|
<?php $spent = 0;?>
|
||||||
@foreach($accounts as $account)
|
@foreach($accounts as $account)
|
||||||
|
@if($account->hide === false)
|
||||||
@if(isset($account->budgetInformation[$id]))
|
@if(isset($account->budgetInformation[$id]))
|
||||||
<td>
|
<td>
|
||||||
@if($id == 0)
|
@if($id == 0)
|
||||||
@@ -97,6 +96,7 @@
|
|||||||
@else
|
@else
|
||||||
<td>{!! Amount::format(0) !!}</td>
|
<td>{!! Amount::format(0) !!}</td>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
|
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
|
||||||
<td>{!! Amount::format($budget['amount'] + $spent) !!}</td>
|
<td>{!! Amount::format($budget['amount'] + $spent) !!}</td>
|
||||||
@@ -105,9 +105,11 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">Balanced by transfers</td>
|
<td colspan="2">Balanced by transfers</td>
|
||||||
@foreach($accounts as $account)
|
@foreach($accounts as $account)
|
||||||
|
@if($account->hide === false)
|
||||||
<td>
|
<td>
|
||||||
<a href="{{route('reports.balanced-transfers',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->balancedAmount) !!}</a>
|
<a href="{{route('reports.balanced-transfers',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->balancedAmount) !!}</a>
|
||||||
</td>
|
</td>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -117,6 +119,7 @@
|
|||||||
<?php
|
<?php
|
||||||
$accountSums[$account->id] += $account->balancedAmount;
|
$accountSums[$account->id] += $account->balancedAmount;
|
||||||
?>
|
?>
|
||||||
|
@if($account->hide === false)
|
||||||
@if(isset($account->budgetInformation[0]))
|
@if(isset($account->budgetInformation[0]))
|
||||||
<td>
|
<td>
|
||||||
@if($account->budgetInformation[0]['amount'] + $account->balancedAmount != 0.0)
|
@if($account->budgetInformation[0]['amount'] + $account->balancedAmount != 0.0)
|
||||||
@@ -128,20 +131,25 @@
|
|||||||
@else
|
@else
|
||||||
<td>{!! Amount::format(0) !!}</td>
|
<td>{!! Amount::format(0) !!}</td>
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><em>Sum</em></td>
|
<td colspan="2"><em>Sum</em></td>
|
||||||
@foreach($accounts as $account)
|
@foreach($accounts as $account)
|
||||||
|
@if($account->hide === false)
|
||||||
<td>{!! Amount::format($accountSums[$account->id]) !!}</td>
|
<td>{!! Amount::format($accountSums[$account->id]) !!}</td>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">Expected balance</td>
|
<td colspan="2">Expected balance</td>
|
||||||
@foreach($accounts as $account)
|
@foreach($accounts as $account)
|
||||||
|
@if($account->hide === false)
|
||||||
<td>{!! Amount::format($account->startBalance + $accountSums[$account->id]) !!}</td>
|
<td>{!! Amount::format($account->startBalance + $accountSums[$account->id]) !!}</td>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<td colspan="2"> </td>
|
<td colspan="2"> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user