From 766ac81698e661db63abef779fa29bbe5c54ffd3 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 17 Sep 2026 12:17:27 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/PlayerPropsDrop.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index b4131d55..d2e35791 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -374,7 +374,6 @@ class PlayerPropsDrop extends Widget $tmp['id'] = $ss_player_id; $tmp['name'] = $val->details->player_name; - $tmp['total_events'] = $val->total_events; $tmp['id_team'] = $team_id; $tmp['asp_team'] = $asp_team; $tmp['player_count_without_gk'] = $count_player; @@ -548,12 +547,12 @@ class PlayerPropsDrop extends Widget foreach ($results as $key => $result) { if ((int) $record['id'] == (int) $result['id']) { $this->players[$k]['active'] = $result['active']; - $this->players[$k]['gls'] = $result['total_events'] ? number_format($result['asp_player_goals'], 3) : 0; - $this->players[$k]['fls'] = $result['total_events'] ? number_format($result['asp_player_fouls'], 3) : 0; - $this->players[$k]['ofs'] = $result['total_events'] ? number_format($result['asp_player_offsides'], 3) : 0; - $this->players[$k]['snt'] = $result['total_events'] ? number_format($result['asp_player_total_shots'], 3) : 0; - $this->players[$k]['tsh'] = $result['total_events'] ? number_format($result['asp_player_shots_on_target'], 3) : 0; - $this->players[$k]['crd'] = $result['total_events'] ? number_format($result['asp_player_cards'], 3) : 0; + $this->players[$k]['gls'] = number_format($result['asp_player_goals'], 3); + $this->players[$k]['fls'] = number_format($result['asp_player_fouls'], 3); + $this->players[$k]['ofs'] = number_format($result['asp_player_offsides'], 3); + $this->players[$k]['snt'] = number_format($result['asp_player_total_shots'], 3); + $this->players[$k]['tsh'] = number_format($result['asp_player_shots_on_target'], 3); + $this->players[$k]['crd'] = number_format($result['asp_player_cards'], 3); } } }