From 75b38d8044dec2fd58e45a389f3fc4b8b26c003c Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 5 Aug 2026 10:10:59 +0200 Subject: [PATCH] wip missing --- .../Tables/StatistikoDetailsTable.php | 8 ++++++-- .../Tables/StatistikoPlayersTable.php | 12 +++++++++-- .../pages/list-missing-player.blade.php | 20 +++++++++++++------ 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/app/Filament/Clusters/StaticData/Resources/StatistikoDetails/Tables/StatistikoDetailsTable.php b/app/Filament/Clusters/StaticData/Resources/StatistikoDetails/Tables/StatistikoDetailsTable.php index ea0d5399..c2085e8b 100644 --- a/app/Filament/Clusters/StaticData/Resources/StatistikoDetails/Tables/StatistikoDetailsTable.php +++ b/app/Filament/Clusters/StaticData/Resources/StatistikoDetails/Tables/StatistikoDetailsTable.php @@ -24,8 +24,12 @@ class StatistikoDetailsTable ->paginationPageOptions([8, 16, 24, 36]) ->columns([ Stack::make([ - TextColumn::make('player_name')->searchable()->color('primary')->icon('phosphor-copy')->copyable(), - TextColumn::make('ss_player_id')->searchable()->color('success')->icon('phosphor-copy')->copyable(), + TextColumn::make('player_name')->color('primary')->icon('phosphor-copy')->copyable()->searchable(), + TextColumn::make('ss_player_id') + ->color('success')->icon('phosphor-copy')->copyable() + ->searchable( + query: fn($query, $search) => $query->orWhere('ss_player_id', (int) $search) + ), TextColumn::make('positions.name')->badge()->color('warning'), TextColumn::make('team.ss_team_name')->prefix('Team: ')->color('teal'), TextColumn::make('team.country.name')->prefix('Country: ')->color('teal'), diff --git a/app/Filament/Clusters/StaticData/Resources/StatistikoPlayers/Tables/StatistikoPlayersTable.php b/app/Filament/Clusters/StaticData/Resources/StatistikoPlayers/Tables/StatistikoPlayersTable.php index b8832f2b..6d0a03c4 100644 --- a/app/Filament/Clusters/StaticData/Resources/StatistikoPlayers/Tables/StatistikoPlayersTable.php +++ b/app/Filament/Clusters/StaticData/Resources/StatistikoPlayers/Tables/StatistikoPlayersTable.php @@ -15,8 +15,16 @@ class StatistikoPlayersTable { return $table ->columns([ - TextColumn::make('match_id')->searchable(), - TextColumn::make('ss_player_id')->label('SofaScore Id')->searchable(), + TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable() + ->searchable( + query: fn($query, $search) => $query->orWhere('match_id', (int) $search) + ), + TextColumn::make('ss_player_id') + ->label('Player Id') + ->color('success')->icon('phosphor-copy')->copyable() + ->searchable( + query: fn($query, $search) => $query->orWhere('ss_player_id', (int) $search) + ), TextColumn::make('details.player_name') ->label('Player') ->searchable() diff --git a/resources/views/filament/pages/list-missing-player.blade.php b/resources/views/filament/pages/list-missing-player.blade.php index 003efe85..bdd51d61 100644 --- a/resources/views/filament/pages/list-missing-player.blade.php +++ b/resources/views/filament/pages/list-missing-player.blade.php @@ -1,8 +1,16 @@ -
+
+ {{--
Player missing {{ \count($players)}}
--}} + + + Player missing {{ \count($players)}} + - @foreach ($players as $player) - -
{{ $player->ss_player_id }}
- - @endforeach +
+ @foreach ($players as $player) + +
{{ $player->ss_player_id }}
+ + @endforeach +
+