wip missing
This commit is contained in:
1 parent
2b04917d3c
commit
75b38d8044
3 files changed
+28
-8
No files matched your search
+6
-2
@@ -24,8 +24,12 @@ class StatistikoDetailsTable
|
|||||||
->paginationPageOptions([8, 16, 24, 36])
|
->paginationPageOptions([8, 16, 24, 36])
|
||||||
->columns([
|
->columns([
|
||||||
Stack::make([
|
Stack::make([
|
||||||
TextColumn::make('player_name')->searchable()->color('primary')->icon('phosphor-copy')->copyable(),
|
TextColumn::make('player_name')->color('primary')->icon('phosphor-copy')->copyable()->searchable(),
|
||||||
TextColumn::make('ss_player_id')->searchable()->color('success')->icon('phosphor-copy')->copyable(),
|
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('positions.name')->badge()->color('warning'),
|
||||||
TextColumn::make('team.ss_team_name')->prefix('Team: ')->color('teal'),
|
TextColumn::make('team.ss_team_name')->prefix('Team: ')->color('teal'),
|
||||||
TextColumn::make('team.country.name')->prefix('Country: ')->color('teal'),
|
TextColumn::make('team.country.name')->prefix('Country: ')->color('teal'),
|
||||||
|
|||||||
+10
-2
@@ -15,8 +15,16 @@ class StatistikoPlayersTable
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('match_id')->searchable(),
|
TextColumn::make('match_id')->color('info')->icon('phosphor-copy')->copyable()
|
||||||
TextColumn::make('ss_player_id')->label('SofaScore Id')->searchable(),
|
->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')
|
TextColumn::make('details.player_name')
|
||||||
->label('Player')
|
->label('Player')
|
||||||
->searchable()
|
->searchable()
|
||||||
|
|||||||
@@ -1,8 +1,16 @@
|
|||||||
<div class= "flex flex-wrap gap-2">
|
<div>
|
||||||
|
{{-- <div class="p-2 border text-md">Player missing {{ \count($players)}}</div> --}}
|
||||||
|
<x-filament::fieldset>
|
||||||
|
<x-slot name="label">
|
||||||
|
Player missing {{ \count($players)}}
|
||||||
|
</x-slot>
|
||||||
|
|
||||||
@foreach ($players as $player)
|
<div class= "flex flex-wrap gap-2">
|
||||||
|
@foreach ($players as $player)
|
||||||
|
|
||||||
<div>{{ $player->ss_player_id }}</div>
|
<div>{{ $player->ss_player_id }}</div>
|
||||||
|
|
||||||
@endforeach
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</x-filament::fieldset>
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user