Some small changes in the account display.

This commit is contained in:
Sander Dorigo
2014-07-07 19:33:17 +02:00
parent aca666704d
commit c7d3ef6a97
3 changed files with 30 additions and 24 deletions

View File

@@ -26,8 +26,10 @@ class AccountController extends \BaseController
'initial' => [],
'cash' => []
];
$total = $all->count();
foreach ($all as $account) {
switch ($account->accounttype->description) {
case 'Default account':
$list['personal'][] = $account;
@@ -45,7 +47,7 @@ class AccountController extends \BaseController
}
}
return View::make('accounts.index')->with('accounts', $list);
return View::make('accounts.index')->with('accounts', $list)->with('total',$total);
}
//
//