This commit is contained in:
salam committed 2026-05-21 11:44:44 +02:00
1 parent 0afb7944bc
commit 01e22c4c6b
11 files changed
+19 -13

No files matched your search

@@ -21,7 +21,7 @@ class ListPlayers extends ListRecords
ImportAction::make('importPlayer')
->icon('phosphor-upload')
->label('Import')
->modalDescription('Separator comma ",", First line: "name,player_id"')
->modalDescription('Separator comma ",", First line: "name,tm_player_id"')
->importer(PlayerImporter::class),
];
}
@@ -12,7 +12,8 @@ class PlayerForm
return $schema
->components([
TextInput::make('name'),
TextInput::make('player_id')->afterLabel(['Must be unique']),
TextInput::make('tm_player_id')->afterLabel(['Must be unique']),
TextInput::make('ss_player_id')->afterLabel(['Must be unique']),
]);
}
}
@@ -18,7 +18,7 @@ class PlayersTable
Stack::make([
TextColumn::make('name')
->searchable(),
TextColumn::make('id')
TextColumn::make('tm_player_id')
->badge()
->searchable(),
]),
@@ -19,7 +19,7 @@ class StatistikoDetailsTable
->paginationPageOptions([8, 16, 24, 36])
->columns([
Stack::make([
TextColumn::make('player_id')->prefix('Id: ')->searchable()->color('success')->icon('phosphor-copy')->copyable(),
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('birthdate')->date()->prefix('Birthdate: '),
@@ -16,8 +16,10 @@ class StatistikoPlayerForm
'default' => 2,
'xl' => 4,
])->schema([
TextInput::make('sport_id'),
TextInput::make('match_id'),
TextInput::make('player_id'),
TextInput::make('ss_player_id'),
TextInput::make('tm_player_id'),
TextInput::make('activeteam_id'),
TextInput::make('playersubstitute_id'),
TextInput::make('goals'),
@@ -75,7 +77,6 @@ class StatistikoPlayerForm
TextInput::make('subtype_event_during_the_match'),
TextInput::make('player_position'),
TextInput::make('playerrating_value'),
TextInput::make('tm_player_id'),
]),
])->columns(1);
}
@@ -19,7 +19,8 @@ class StatistikoPlayersTable
->label('Player')
->searchable()
->tooltip(fn ($record) => $record->details->full_name),
TextColumn::make('player_id')->searchable(),
TextColumn::make('tm_player_id')->searchable(),
TextColumn::make('ss_player_id')->searchable(),
TextColumn::make('event.home.name')->searchable(),
TextColumn::make('event.away.name')->searchable(),
])