ss ->sortable
This commit is contained in:
1 parent
c8cf1edaf4
commit
000f6fa046
18 files changed
+157
-106
No files matched your search
@@ -64,12 +64,15 @@ class CountryResource extends Resource
|
||||
->recordTitleAttribute('name')
|
||||
->columns([
|
||||
TextColumn::make('id')->searchable()
|
||||
->sortable()
|
||||
->alignCenter()->tooltip('Click to copy'),
|
||||
TextColumn::make('name')
|
||||
->searchable()
|
||||
->sortable()
|
||||
->color('primary')
|
||||
->copyable(),
|
||||
TextColumn::make('season_mode')
|
||||
->sortable()
|
||||
->badge()
|
||||
->formatStateUsing(fn(string $state): string => strtoupper($state))
|
||||
->color(fn(string $state): string => match ($state) {
|
||||
@@ -81,10 +84,14 @@ class CountryResource extends Resource
|
||||
->icon(function ($state): string {
|
||||
return $state;
|
||||
})->label('Flags')->size(IconSize::TwoExtraLarge),
|
||||
TextColumn::make('iso3'),
|
||||
TextColumn::make('cc'),
|
||||
TextColumn::make('numeric'),
|
||||
IconColumn::make('is_country')->alignCenter()->boolean(),
|
||||
TextColumn::make('iso3')
|
||||
->sortable(),
|
||||
TextColumn::make('cc')
|
||||
->sortable(),
|
||||
TextColumn::make('numeric')
|
||||
->sortable(),
|
||||
IconColumn::make('is_country')->alignCenter()->boolean()
|
||||
->sortable(),
|
||||
|
||||
])
|
||||
->defaultSort('name', direction: 'asc')
|
||||
|
||||
Reference in new issue
Block a user