This commit is contained in:
salam committed 2026-10-10 14:59:45 +02:00
1 parent 407f773dec
commit 0a09953bdd
2 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -12,8 +12,7 @@ class PlayerCalculator extends Component
{
$positions_map = LoadPositions::load();
// $player = SofaScorePlayerPerSeason::with('details')->where('season', '=', 'total')->where('ss_team_id', '=', $team_id)->get();
$player = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('average_min', '>', 0)->where('ss_team_id', $team_id)->get();
$player = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $team_id)->get();
$result = [];
foreach ($player as $val) {
if ($val->details != null && $val->details->is_active) {