Better mostly report lists.

This commit is contained in:
James Cole
2015-03-02 11:54:20 +01:00
parent d98d366eea
commit fd57086ffd
2 changed files with 18 additions and 8 deletions

View File

@@ -99,7 +99,8 @@ class ReportHelper implements ReportHelperInterface
$end = Carbon::now();
$months = [];
while ($start <= $end) {
$months[] = [
$year = $start->format('Y');
$months[$year][] = [
'formatted' => $start->format('F Y'),
'month' => intval($start->format('m')),
'year' => intval($start->format('Y')),