events wip

This commit is contained in:
salam committed 2025-08-28 10:43:50 +02:00
1 parent 8d623755ca
commit a7e09c6590
25 files changed
+1112 -384

No files matched your search

@@ -34,12 +34,13 @@ class CountryResource extends Resource
{
return $schema
->components([
TextInput::make('name')
->required()
->maxLength(255),
TextInput::make('iso2')
->required()
->maxLength(2),
TextInput::make('name')->required()->maxLength(255)->copyable(),
TextInput::make('icon')->maxLength(255),
TextInput::make('iso2')->maxLength(2),
TextInput::make('iso3')->maxLength(2),
TextInput::make('cc')->maxLength(2),
TextInput::make('numeric')->maxLength(2),
TextInput::make('txid')->maxLength(4),
]);
}
@@ -47,12 +48,17 @@ class CountryResource extends Resource
{
return $table
->recordTitleAttribute('name')
->description('Flags made from iso2 column')
->columns([
IconColumn::make('iso2')->icon(function ($record): string {
return 'flag-country-'.$record->iso2;
})->label('Flags')->size(IconSize::TwoExtraLarge),
TextColumn::make('name')->searchable(),
IconColumn::make('icon')
->sortable()
->icon(function ($state): string {
return $state;
})->label('Flags')->size(IconSize::TwoExtraLarge),
TextColumn::make('name')
->searchable()
->copyable()
->copyMessage('Name copied')
->copyMessageDuration(1500),
// TextColumn::make('iso2'),
TextColumn::make('iso3'),
TextColumn::make('cc'),
@@ -60,6 +66,7 @@ class CountryResource extends Resource
TextColumn::make('txid'),
])
->defaultSort('name', direction: 'asc')
->filters([
//
])