wip layout filter and performance

This commit is contained in:
salam committed 2026-06-03 09:47:30 +02:00
1 parent 0221ace4d2
commit 54a409f344
13 files changed
+270 -54

No files matched your search

@@ -2,6 +2,7 @@
namespace App\Filament\Widgets\Data;
use App\Models\StatistikoDetail;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Carbon;
@@ -35,6 +36,8 @@ class LoadPlayerPerformance
return [];
}
$player_name = StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name');
if ($statistic_type == 'none') {
$statistic_type = 'gls';
}
@@ -52,9 +55,9 @@ class LoadPlayerPerformance
$tmp = [];
foreach ($matches_played as $value) {
$key = round($value->event->starttime->diffInDays(Carbon::now()));
$val = $value->playerrating_value;
$tmp[$key] = $val;
$key = round($value->event->starttime->diffInDays(Carbon::now()));
$tmp["$key"] = $val;
}
ksort($tmp);
@@ -77,6 +80,7 @@ class LoadPlayerPerformance
],
],
'labels' => $labels,
'player_name' => $player_name,
];
self::$last_query = $data;