Removed unused blocks from the front page. Savings and piggy banks.

This commit is contained in:
James Cole
2016-10-09 10:58:54 +02:00
parent a8a014189d
commit b082858866
2 changed files with 1 additions and 120 deletions

View File

@@ -142,14 +142,6 @@ class HomeController extends Controller
$end = session('end', Carbon::now()->endOfMonth());
$showTour = Preferences::get('tour', true)->data;
$accounts = $crud->getAccountsById($frontPage->data);
$savings = $repository->getSavingsAccounts($start, $end);
$piggyBankAccounts = $repository->getPiggyBankAccounts($start, $end);
$savingsTotal = '0';
foreach ($savings as $savingAccount) {
$savingsTotal = bcadd($savingsTotal, Steam::balance($savingAccount, $end));
}
foreach ($accounts as $account) {
$set = $repository->journalsInPeriod(new Collection([$account]), [], $start, $end);
@@ -161,7 +153,7 @@ class HomeController extends Controller
}
return view(
'index', compact('count', 'showTour', 'title', 'savings', 'subTitle', 'mainTitleIcon', 'transactions', 'savingsTotal', 'piggyBankAccounts')
'index', compact('count', 'showTour', 'title','subTitle', 'mainTitleIcon', 'transactions')
);
}