/** * @param BudgetRepositoryInterface $repository * * @return \Illuminate\View\View */ public function noBudget(BudgetRepositoryInterface $repository) { $range = Preferences::get('viewRange', '1M')->data; $start = Navigation::startOfPeriod(Session::get('start', new Carbon()), $range); $end = Navigation::endOfPeriod($start, $range); $list = $repository->getWithoutBudget($start, $end); $subTitle = trans('firefly.without_budget_between', ['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)]); return view('budgets.noBudget', compact('list', 'subTitle')); }
/** * @param BudgetRepositoryInterface $repository * * @return \Illuminate\View\View */ public function noBudget(BudgetRepositoryInterface $repository) { $start = Session::get('start', Carbon::now()->startOfMonth()); $end = Session::get('end', Carbon::now()->startOfMonth()); $list = $repository->getWithoutBudget($start, $end); $subTitle = trans('firefly.without_budget_between', ['start' => $start->formatLocalized($this->monthAndDayFormat), 'end' => $end->formatLocalized($this->monthAndDayFormat)]); return view('budgets.noBudget', compact('list', 'subTitle')); }