This commit is contained in:
salam committed 2026-09-12 15:33:54 +02:00
1 parent a7de253291
commit 7b36b71316
3 files changed
+46 -6

No files matched your search

+6 -6
View File
@@ -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;
+10
View File
@@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class SsLineupMemory extends Model
{
//
}
@@ -0,0 +1,30 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('ss_lineup_memories', function (Blueprint $table) {
$table->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');
}
};