GetSeason as string bf
This commit is contained in:
1 parent
db8f32ad48
commit
bfcb7230af
3 files changed
+6
-3
No files matched your search
@@ -23,12 +23,10 @@ class LoadSeasons
|
|||||||
$tmp = $date->format('y') - 1 . '/' . $date->format('y');
|
$tmp = $date->format('y') - 1 . '/' . $date->format('y');
|
||||||
$season[$tmp] = $tmp;
|
$season[$tmp] = $tmp;
|
||||||
} else {
|
} else {
|
||||||
$season[$date->year] = $date->year;
|
$season[(string) $date->year] = (string) $date->year;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$season = array_reverse($season);
|
|
||||||
|
|
||||||
return $season;
|
return $season;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -347,6 +347,10 @@ class Statistic extends BaseDashboard
|
|||||||
'date' => 'Date',
|
'date' => 'Date',
|
||||||
]),
|
]),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
/************************
|
||||||
|
* SEASON
|
||||||
|
************************/
|
||||||
Select::make('season')
|
Select::make('season')
|
||||||
->live()
|
->live()
|
||||||
->columns(2)
|
->columns(2)
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ class LoadEventsQuery
|
|||||||
// $team_id = 0;
|
// $team_id = 0;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
// dd($season);
|
||||||
$season = GetSeason::load($season, $seasonmode);
|
$season = GetSeason::load($season, $seasonmode);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user