This commit is contained in:
salam committed 2026-10-07 11:30:23 +02:00
1 parent 28882bfdb5
commit 36584b8de4
4 files changed
+6 -37

No files matched your search

@@ -4,11 +4,9 @@ namespace App\Filament\Widgets\Boxes;
use App\Filament\Widgets\Boxes\Helper\ExpectationCalculation;
use App\Filament\Widgets\Boxes\Helper\ExpectationCollecting;
use App\Filament\Widgets\Boxes\Helper\ExpectationCounting;
use App\Filament\Widgets\Charts\LoadEvents\LoadEventsQueryAll;
use App\Filament\Widgets\Charts\LoadEvents\LoadEventsQueryTP;
use App\Utilities\Round;
use Illuminate\Support\Facades\Log;
class ExpectationsTeam
{
@@ -1,29 +0,0 @@
<?php
namespace App\Filament\Widgets\Boxes\Helper;
class ExpectationCounting
{
public static function count(string $team_position, int $team_id, object $res)
{
$count = 0;
foreach ($res as $value) {
switch ($team_position) {
case 'home':
if ($value->home_id == $team_id)
$count++;
break;
case 'away':
if ($value->away_id == $team_id)
$count++;
break;
default:
$count++;
break;
}
}
return $count;
}
}