diff --git a/app/Filament/Widgets/Data/LoadEvents.php b/app/Filament/Widgets/Data/LoadEvents.php index 9a497880..407f09e0 100644 --- a/app/Filament/Widgets/Data/LoadEvents.php +++ b/app/Filament/Widgets/Data/LoadEvents.php @@ -100,7 +100,7 @@ class LoadEvents }) ->pluck('match_id')->toArray(); - $description = ' with '.StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name').' ('.\count($matches_played).')'; + $description = ' with ' . StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name') . ' (' . \count($matches_played) . ')'; if (! $matches_played) { $matches_played[] = -1; @@ -162,7 +162,7 @@ class LoadEvents $playing_date[] = $value['starttime']->format('d. F Y H:i'); - $results_per_event[] = $value['gls_h'].' : '.$value['gls_a']; + $results_per_event[] = $value['gls_h'] . ' : ' . $value['gls_a']; if ($team_position == 'home') { switch ($value['result_code']) { @@ -347,7 +347,7 @@ class LoadEvents } } if (isset($val_home) && isset($val_away)) { - $events[] = $value->home->name.' vs '.$value->away->name; + $events[] = $value->home->name . ' vs ' . $value->away->name; $dataset_home[] = $val_home; $dataset_away[] = $val_away; } @@ -392,6 +392,7 @@ class LoadEvents 'backgroundColor' => '#fdc700', 'pointStyle' => $hasdots, 'fill' => false, + 'hidden' => true, ], ], 'labels' => $labels,