From 2c641b5507bd2feee6a72c0bc12199fa55482d99 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 17 Sep 2026 16:13:08 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/PlayerPropsDrop.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index 2ea37b80..0ce281eb 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -449,7 +449,7 @@ class PlayerPropsDrop extends Widget switch ($bettype) { case 'goals': - if ($val->goals < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->goals / $val->total_min * 90; @@ -458,7 +458,7 @@ class PlayerPropsDrop extends Widget $tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value); break; case 'cards': - if ($val->cards < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->cards / $val->total_min * 90; @@ -467,7 +467,7 @@ class PlayerPropsDrop extends Widget $tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value); break; case 'fouls': - if ($val->fouls < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->fouls / $val->total_min * 90; @@ -476,7 +476,7 @@ class PlayerPropsDrop extends Widget $tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value); break; case 'offsides': - if ($val->offsides < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->offsides / $val->total_min * 90; @@ -485,7 +485,7 @@ class PlayerPropsDrop extends Widget $tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value); break; case 'total_shots': - if ($val->total_shots < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->total_shots / $val->total_min * 90; @@ -494,7 +494,7 @@ class PlayerPropsDrop extends Widget $tmp['asp_teorica_'.$bettype] = ($this->x_value * $asp_gioco + $asp_statistica) / (1 + $this->x_value); break; case 'shots_on_target': - if ($val->shots_on_target < $this->y_value) { + if ($val->total_min < $this->y_value) { $asp_gioco = 0; } else { $asp_gioco = $val->shots_on_target / $val->total_min * 90;