diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index f4ad3c12..c36d671b 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -463,6 +463,7 @@ class PlayerPropsDrop extends Widget case 'goals': $asp_gioco = $val->goals / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco; @@ -472,6 +473,7 @@ class PlayerPropsDrop extends Widget case 'cards': $asp_gioco = $val->cards / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco; @@ -481,6 +483,7 @@ class PlayerPropsDrop extends Widget case 'fouls': $asp_gioco = $val->fouls / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco; @@ -490,6 +493,7 @@ class PlayerPropsDrop extends Widget case 'offsides': $asp_gioco = $val->offsides / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco; @@ -499,6 +503,7 @@ class PlayerPropsDrop extends Widget case 'total_shots': $asp_gioco = $val->total_shots / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco; @@ -508,6 +513,7 @@ class PlayerPropsDrop extends Widget case 'shots_on_target': $asp_gioco = $val->shots_on_target / $val->total_min * 90; if ($asp_gioco == 0) { + $tmp['asp_gioco_' . $bettype] = 0; $tmp['asp_teorica_' . $bettype] = $asp_statistica; } else { $tmp['asp_gioco_' . $bettype] = $asp_gioco;