add 2 parts for claculation pp wip

This commit is contained in:
salam committed 2026-10-31 19:22:16 +01:00
1 parent 6d2f4c1052
commit ad45880506
19 files changed
+1403 -1049

No files matched your search

+5
View File
@@ -44,6 +44,9 @@ trait GrappingTeams
}
switch ($title = $this->select_what_to_grap()) {
case 'all':
$tournaments = SofaScoreTournament::where('enabled', 1)->pluck('tournament_id')->toArray();
break;
case 'major':
$tournaments = SofaScoreTournament::where('enabled', 1)->whereIn('tournament_id', $major)->pluck('tournament_id')->toArray();
break;
@@ -106,7 +109,9 @@ trait GrappingTeams
{
return select(
label: 'What teams should be grapped?',
default: 'all',
options: [
'all' => 'All Leagues',
'major' => 'Major Leagues',
'others' => 'Others Leagues',
'manual' => 'Enter team_ids (sofa_score_rosas)',