Routes and views for transactions without a budget / category [skip ci]

This commit is contained in:
James Cole
2015-01-02 18:48:06 +01:00
parent da0c0742bf
commit ae16a2b14f
10 changed files with 144 additions and 7 deletions

View File

@@ -124,6 +124,19 @@ class BudgetController extends BaseController
return View::make('budgets.index', compact('budgetMaximum', 'budgets', 'spent', 'spentPCT', 'overspent', 'amount'));
}
/**
* @return \Illuminate\View\View
*/
public function noBudget()
{
$start = \Session::get('start', Carbon::now()->startOfMonth());
$end = \Session::get('end', Carbon::now()->startOfMonth());
$list = $this->_repository->journalsNoBudget($start, $end);
$subTitle = 'Transactions without a budget in ' . $start->format('F Y');
return View::make('budgets.noBudget', compact('list', 'subTitle'));
}
/**
* @return \Illuminate\Http\RedirectResponse
*/
@@ -189,7 +202,6 @@ class BudgetController extends BaseController
return Redirect::route('budgets.create')->withInput();
}
/**
* @param Budget $budget
*