wiip
This commit is contained in:
1 parent
82f3654a05
commit
be4a08982e
8 files changed
+364
-326
No files matched your search
@@ -47,21 +47,14 @@ class LoadPlayer
|
||||
|
||||
$res = StatistikoPlayer::with('event')->where('ss_player_id', (int) $ss_player_id)->get();
|
||||
|
||||
// dd($res);
|
||||
|
||||
|
||||
$tmp = [];
|
||||
foreach ($res as $value) {
|
||||
|
||||
// dd($value);
|
||||
|
||||
$val = 0;
|
||||
$key = 0;
|
||||
|
||||
if (isset($value->event->starttime)) {
|
||||
|
||||
// $labels[] = $value->event->starttime->format('d.M.y');
|
||||
|
||||
$key = round($value->event->starttime->diffInDays(Carbon::now()));
|
||||
|
||||
switch ($statistic_type) {
|
||||
@@ -92,6 +85,7 @@ class LoadPlayer
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
krsort($tmp);
|
||||
$dataset = [];
|
||||
$labels = [];
|
||||
|
||||
Reference in new issue
Block a user