modifications details
This commit is contained in:
1 parent
c143dcf727
commit
c1892e86aa
21 files changed
+99
-108
No files matched your search
+8
-12
@@ -24,23 +24,19 @@ class StatistikoDetailsTable
|
||||
->paginationPageOptions([8, 16, 24, 36])
|
||||
->columns([
|
||||
Stack::make([
|
||||
TextColumn::make('tm_player_id')->prefix('Id: ')->searchable()->color('success')->icon('phosphor-copy')->copyable(),
|
||||
TextColumn::make('name')->searchable()->prefix('Name: ')->color('primary')->icon('phosphor-copy')->copyable(),
|
||||
TextColumn::make('full_name')->color('gray')->searchable(),
|
||||
TextColumn::make('ss_player_id')->prefix('Id: ')->searchable()->color('success')->icon('phosphor-copy')->copyable(),
|
||||
TextColumn::make('player_name')->searchable()->prefix('Name: ')->color('primary')->icon('phosphor-copy')->copyable(),
|
||||
TextColumn::make('birthdate')->date()->prefix('Birthdate: '),
|
||||
TextColumn::make('height')->prefix('Height: ')->suffix(' cm'),
|
||||
TextColumn::make('nationality')->prefix('Nationality: '),
|
||||
TextColumn::make('position')->prefix('Position: '),
|
||||
TextColumn::make('sport_radar_id')->searchable()->prefix('Sport Radar Id: ')->icon('phosphor-copy')->copyable(),
|
||||
TextColumn::make('id_squadra_tm')->prefix('Team Id TM: '),
|
||||
TextColumn::make('rigorist')->prefix('Rigorist: '),
|
||||
TextColumn::make('national_team_id')->prefix('National Team Id: '),
|
||||
TextColumn::make('ss_national_team_id')->prefix('National Team Id: '),
|
||||
TextColumn::make('tx_team_id')->prefix('Team Id: '),
|
||||
TextColumn::make('team_name')->prefix('Team Name: '),
|
||||
TextColumn::make('preferred_foot')->prefix('Preferred Foot: '),
|
||||
TextColumn::make('last_update')->date()->prefix('Last Update: '),
|
||||
TextColumn::make('created_at')->date()->prefix('Created: '),
|
||||
TextColumn::make('updated_at')->date()->prefix('Updated: '),
|
||||
// TextColumn::make('league_code')->prefix('League: '),
|
||||
// TextColumn::make('team_code')->prefix('Team Code: '),
|
||||
// TextColumn::make('team_name')->prefix('Team Name: '),
|
||||
]),
|
||||
])
|
||||
->emptyStateHeading('No double player in details')
|
||||
@@ -56,12 +52,12 @@ class StatistikoDetailsTable
|
||||
return $query->when(
|
||||
$data['find_double'],
|
||||
function (Builder $query) {
|
||||
$pDetails = StatistikoDetail::pluck('tm_player_id')->toArray();
|
||||
$pDetails = StatistikoDetail::pluck('ss_player_id')->toArray();
|
||||
$doublpDetails = array_diff_assoc(
|
||||
$pDetails,
|
||||
array_unique($pDetails)
|
||||
);
|
||||
$query->whereIn('tm_player_id', $doublpDetails)->orderBy('tm_player_id');
|
||||
$query->whereIn('ss_player_id', $doublpDetails)->orderBy('ss_player_id');
|
||||
}
|
||||
);
|
||||
})->indicateUsing(function (array $data): ?string {
|
||||
|
||||
Reference in new issue
Block a user