diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index eb369df2..f7f9bdf7 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -581,7 +581,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa switch ($bettype) { case 'goals': if ($val->total_min < $this->y_value || $val->goals == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->goals / $val->total_min * 90; @@ -591,7 +591,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa break; case 'cards': if ($val->total_min < $this->y_value || $val->cards == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->cards / $val->total_min * 90; @@ -601,7 +601,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa break; case 'fouls': if ($val->total_min < $this->y_value || $val->fouls == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->fouls / $val->total_min * 90; @@ -611,7 +611,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa break; case 'offsides': if ($val->total_min < $this->y_value || $val->offsides == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->offsides / $val->total_min * 90; @@ -621,7 +621,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa break; case 'total_shots': if ($val->total_min < $this->y_value || $val->total_shots == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->total_shots / $val->total_min * 90; @@ -631,7 +631,7 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa break; case 'shots_on_target': if ($val->total_min < $this->y_value || $val->shots_on_target == 0) { - $tmp['asp_teorica_' . $bettype] = $asp_statistica; + $tmp['asp_gioco_' . $bettype] = $asp_statistica; $tmp['asp_teorica_' . $bettype] = ($this->x_value * $asp_statistica) / (1 + $this->x_value); } else { $asp_gioco = $val->shots_on_target / $val->total_min * 90; diff --git a/app/Models/SsLineupMemory.php b/app/Models/SsLineupMemory.php new file mode 100644 index 00000000..0ff9d398 --- /dev/null +++ b/app/Models/SsLineupMemory.php @@ -0,0 +1,10 @@ +id(); + $table->integer('client_id')->index(); + $table->integer('sport_id')->default(1); + $table->integer('sport_id')->default(1); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('ss_lineup_memories'); + } +};