This commit is contained in:
salam committed 2026-07-30 12:03:46 +02:00
1 parent 971d97a573
commit 62c3f80256
9 files changed
+15 -15

No files matched your search

@@ -20,7 +20,7 @@ class SofaScoreRosasTable
return $table
->defaultPaginationPageOption(50)
->columns([
TextColumn::make('ssteam_id')->label('SSId')->badge()->width('1rem'),
TextColumn::make('ss_team_id')->label('SSId')->badge()->width('1rem'),
TextColumn::make('country.name')->label('Country'),
TextColumn::make('tournament_rosa.tournament.name')->label('Tournament'),
TextColumn::make('ssteam_name')->label('Name'),
@@ -62,9 +62,9 @@ class SofaScoreRosasTable
)->when(
$data['ss_tournament_id'],
function (Builder $query, $ss_tournament_id) {
$ssteam_ids = SofaScoreRosaTournament::where('ss_tournament_id', $ss_tournament_id)->pluck('ssteam_id')->toArray();
$ss_team_ids = SofaScoreRosaTournament::where('ss_tournament_id', $ss_tournament_id)->pluck('ss_team_id')->toArray();
$query->whereIn('ssteam_id', $ssteam_ids);
$query->whereIn('ss_team_id', $ss_team_ids);
}
);
}),