mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-24 04:41:01 +00:00
Gave report a subtitle.
This commit is contained in:
@@ -50,11 +50,13 @@ class ReportController extends BaseController
|
|||||||
}
|
}
|
||||||
$date = new Carbon($year . '-' . $month . '-01');
|
$date = new Carbon($year . '-' . $month . '-01');
|
||||||
$dayEarly = clone $date;
|
$dayEarly = clone $date;
|
||||||
|
$subTitle = 'Budget report for ' . $date->format('F Y');
|
||||||
|
$subTitleIcon = 'fa-calendar';
|
||||||
$dayEarly = $dayEarly->subDay();
|
$dayEarly = $dayEarly->subDay();
|
||||||
$accounts = $this->_repository->getAccountListBudgetOverview($date);
|
$accounts = $this->_repository->getAccountListBudgetOverview($date);
|
||||||
$budgets = $this->_repository->getBudgetsForMonth($date);
|
$budgets = $this->_repository->getBudgetsForMonth($date);
|
||||||
|
|
||||||
return View::make('reports.budget', compact('date', 'accounts', 'budgets', 'dayEarly'));
|
return View::make('reports.budget', compact('subTitle','subTitleIcon','date', 'accounts', 'budgets', 'dayEarly'));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user