From 3a729602ccd27d25d55a358bdfab0e622e856a4e Mon Sep 17 00:00:00 2001 From: salam Date: Tue, 15 Sep 2026 18:27:06 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/PlayerPropsDrop.php | 32 ++++++++++++------------ 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index c1d9bb86..4d60649b 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -513,12 +513,12 @@ class PlayerPropsDrop extends Widget // Log::debug('results', $results); // dd($asp_team_others); - // "asp_riferimento_goals" => 4.4 - // "asp_riferimento_fouls" => 42.2 - // "asp_riferimento_offside" => 2.0 - // "asp_riferimento_card" => 8.8 - // "asp_riferimento_snt" => 15.4 - // "asp_riferimento_tsh" => 42.6 + // "asp_team_riferimento_goals" => 4.4 + // "asp_team_riferimento_fouls" => 42.2 + // "asp_team_riferimento_offside" => 2.0 + // "asp_team_riferimento_card" => 8.8 + // "asp_team_riferimento_snt" => 15.4 + // "asp_team_riferimento_tsh" => 42.6 $bettypes = ['goals', 'cards', 'fouls', 'offsides', 'total_shots', 'shots_on_target']; foreach ($bettypes as $bettype) { @@ -537,27 +537,27 @@ class PlayerPropsDrop extends Widget case 'cards': $results[$key]['asp_total_'.$bettype] = $total_bettype; $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_card'] / $total_bettype; - $results[$key]['asp_riferimento_card'] = $asp_team_others['asp_riferimento_card']; + $results[$key]['asp_team_riferimento_card'] = $asp_team_others['asp_team_riferimento_card']; break; case 'fouls': $results[$key]['asp_total_'.$bettype] = $total_bettype; - $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_fouls'] / $total_bettype; - $results[$key]['asp_riferimento_fouls'] = $asp_team_others['asp_riferimento_fouls']; + $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_fouls'] / $total_bettype; + $results[$key]['asp_team_riferimento_fouls'] = $asp_team_others['asp_team_riferimento_fouls']; break; case 'offsides': $results[$key]['asp_total_'.$bettype] = $total_bettype; - $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_offside'] / $total_bettype; - $results[$key]['asp_riferimento_offside'] = $asp_team_others['asp_riferimento_offside']; + $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_offside'] / $total_bettype; + $results[$key]['asp_team_riferimento_offside'] = $asp_team_others['asp_team_riferimento_offside']; break; case 'total_shots': $results[$key]['asp_total_'.$bettype] = $total_bettype; - $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_tsh'] / $total_bettype; - $results[$key]['asp_riferimento_tsh'] = $asp_team_others['asp_riferimento_tsh']; + $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_tsh'] / $total_bettype; + $results[$key]['asp_team_riferimento_tsh'] = $asp_team_others['asp_team_riferimento_tsh']; break; case 'shots_on_target': $results[$key]['asp_total_'.$bettype] = $total_bettype; - $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_riferimento_snt'] / $total_bettype; - $results[$key]['asp_riferimento_snt'] = $asp_team_others['asp_riferimento_snt']; + $results[$key]['asp_player_'.$bettype] = $value['asp_teorica_'.$bettype] * $asp_team_others['asp_team_riferimento_snt'] / $total_bettype; + $results[$key]['asp_team_riferimento_snt'] = $asp_team_others['asp_team_riferimento_snt']; break; } } @@ -630,7 +630,7 @@ class PlayerPropsDrop extends Widget } foreach ($arr as $name => $value) { - $arr['asp_riferimento_'.$name] = (float) round($value / $count_events * $count_player / 10, 1); + $arr['asp_team_riferimento_'.$name] = (float) round($value / $count_events * $count_player / 10, 1); } return $arr;