mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Removed unused blocks from the front page. Savings and piggy banks.
This commit is contained in:
@@ -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')
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user