This commit is contained in:
salam committed 2026-10-09 13:02:44 +02:00
1 parent 8cb1d428cb
commit 0a936bc84b
6 files changed
+190 -100

No files matched your search

@@ -2,7 +2,8 @@
namespace App\Filament\Widgets\Boxes;
use App\Filament\Widgets\Boxes\Helper\ExpectationCalculation;
use App\Filament\Widgets\Boxes\Helper\ExpectationCalculationMethodA;
use App\Filament\Widgets\Boxes\Helper\ExpectationCalculationMethodB;
use App\Filament\Widgets\Boxes\Helper\ExpectationCollecting;
use App\Filament\Widgets\Charts\LoadEvents\LoadEventsQueryAll;
use App\Filament\Widgets\Charts\LoadEvents\LoadEventsQueryTP;
@@ -10,6 +11,8 @@ use App\Utilities\Round;
class ExpectationsTeam
{
public static $collectionMethod = 'B';
public static function load(array &$expectations, array $filter, object $match)
{
/**
@@ -30,7 +33,6 @@ class ExpectationsTeam
}
$res = LoadEventsQueryAll::load($filter, $match);
// dd($res);
$res_tp = LoadEventsQueryTP::load($filter, $match);
@@ -55,8 +57,12 @@ class ExpectationsTeam
ExpectationCollecting::sort($similar_past_matches, $tmp, 'crn', $value->home_id, $value->away_id, $value->crn_h, $value->crn_a, $match);
}
if (self::$collectionMethod == 'A') {
$expectations = ExpectationCalculationMethodA::calc($tmp);
} else {
$expectations = ExpectationCalculationMethodB::calc($tmp);
}
$expectations = ExpectationCalculation::calc($tmp);
$expectations['gls']['name'] = 'Goals';
$expectations['fls']['name'] = 'Fouls';
$expectations['ofs']['name'] = 'Offsides';