This commit is contained in:
salam committed 2026-05-23 14:57:56 +02:00
1 parent 1f4fb9cf8a
commit 0c0192bb8b
2 files changed
+6 -10

No files matched your search

+3 -1
View File
@@ -30,7 +30,9 @@ class ChartPunctualEvent extends ChartWidget
$data = LoadEvents::load($this->filters);
$this->description = 'Punctual '.$data['description'];
if (isset($data['description'])) {
$this->description = 'Punctual '.$data['description'];
}
return $data;
}
+3 -9
View File
@@ -27,8 +27,6 @@ class LoadEvents
$end = $filter['end_date'] ?? 0;
$similar_past_matches = $filter['similar_past_matches'] ?? 0;
$statistic_type = $filter['statistic_type'] ?? 0;
$team_position = $filter['team_position'];
@@ -46,14 +44,14 @@ class LoadEvents
/**
* IF WITH PLAYER
*/
$matches_played = 0;
$description = '';
if ($tm_player_id) {
$matches_played = StatistikoPlayer::where('tm_player_id', (int) $tm_player_id)->pluck('match_id')->toArray();
$description = ' (with '.StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name').')';
} else {
$matches_played = 0;
}
/**
* STATTISTIC DATA
*/
@@ -207,10 +205,6 @@ class LoadEvents
'fill' => true,
'tension' => 0.5,
'borderColor' => '#36A2EB',
'datalabels' => [
'align' => 'start',
'anchor' => 'start',
],
],
],
'labels' => $labels,