Remove optional chart (always enabled)

This commit is contained in:
James Cole 2018-03-09 05:44:35 +01:00
parent eabfe0769b
commit ad18b9b81b
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
3 changed files with 148 additions and 151 deletions

View File

@ -165,7 +165,6 @@ class HomeController extends Controller
/** @var Carbon $end */
$end = session('end', Carbon::now()->endOfMonth());
$accounts = $repository->getAccountsById($frontPage->data);
$showDeps = Preferences::get('showDepositsFrontpage', false)->data;
$today = new Carbon;
// zero bills? Hide some elements from view.
@ -185,7 +184,7 @@ class HomeController extends Controller
return view(
'index',
compact('count', 'subTitle', 'transactions', 'showDeps', 'billCount', 'start', 'end', 'today')
compact('count', 'subTitle', 'transactions', 'billCount', 'start', 'end', 'today')
);
}

View File

@ -164,7 +164,6 @@
</div>
</div>
{# OPTIONAL REVENUE ACCOUNTS #}
{% if showDeps %}
<div class="box">
<div class="box-header with-border">
<h3 class="box-title"><a href="{{ route('accounts.index',['revenue']) }}"
@ -179,7 +178,6 @@
class="fa fa-download"></i> {{ 'go_to_revenue_accounts'|_ }}</a>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}