Remove optional chart (always enabled)

This commit is contained in:
James Cole
2018-03-09 05:44:35 +01:00
parent eabfe0769b
commit ad18b9b81b
3 changed files with 148 additions and 151 deletions

View File

@@ -165,7 +165,6 @@ class HomeController extends Controller
/** @var Carbon $end */ /** @var Carbon $end */
$end = session('end', Carbon::now()->endOfMonth()); $end = session('end', Carbon::now()->endOfMonth());
$accounts = $repository->getAccountsById($frontPage->data); $accounts = $repository->getAccountsById($frontPage->data);
$showDeps = Preferences::get('showDepositsFrontpage', false)->data;
$today = new Carbon; $today = new Carbon;
// zero bills? Hide some elements from view. // zero bills? Hide some elements from view.
@@ -185,7 +184,7 @@ class HomeController extends Controller
return view( return view(
'index', '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>
</div> </div>
{# OPTIONAL REVENUE ACCOUNTS #} {# OPTIONAL REVENUE ACCOUNTS #}
{% if showDeps %}
<div class="box"> <div class="box">
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title"><a href="{{ route('accounts.index',['revenue']) }}" <h3 class="box-title"><a href="{{ route('accounts.index',['revenue']) }}"
@@ -179,7 +178,6 @@
class="fa fa-download"></i> {{ 'go_to_revenue_accounts'|_ }}</a> class="fa fa-download"></i> {{ 'go_to_revenue_accounts'|_ }}</a>
</div> </div>
</div> </div>
{% endif %}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}