wip
This commit is contained in:
1 parent
79839c04a4
commit
bff7331193
4 files changed
+15
-13
No files matched your search
+2
-2
@@ -24,11 +24,11 @@ class CompetitionGroupResource extends Resource
|
|||||||
|
|
||||||
protected static string|UnitEnum|null $navigationGroup = 'TxOdds';
|
protected static string|UnitEnum|null $navigationGroup = 'TxOdds';
|
||||||
|
|
||||||
protected static ?string $modelLabel = 'Groups';
|
protected static ?string $modelLabel = 'Leagues';
|
||||||
|
|
||||||
protected static ?int $navigationSort = 11;
|
protected static ?int $navigationSort = 11;
|
||||||
|
|
||||||
protected static ?string $navigationLabel = 'Groups';
|
protected static ?string $navigationLabel = 'Leagues';
|
||||||
|
|
||||||
public static function form(Schema $schema): Schema
|
public static function form(Schema $schema): Schema
|
||||||
{
|
{
|
||||||
|
|||||||
+4
-2
@@ -39,13 +39,15 @@ class CompetitionGroupsTable
|
|||||||
->icon(fn ($record) => $record->sport->icon)
|
->icon(fn ($record) => $record->sport->icon)
|
||||||
->tooltip(fn ($record) => $record->id)
|
->tooltip(fn ($record) => $record->id)
|
||||||
->visibleFrom('lg'),
|
->visibleFrom('lg'),
|
||||||
|
TextColumn::make('id')->copyable()->alignCenter()->tooltip('Click to copy'),
|
||||||
|
TextColumn::make('name')
|
||||||
|
->color('primary')
|
||||||
|
->searchable(),
|
||||||
TextColumn::make('country.name')
|
TextColumn::make('country.name')
|
||||||
->wrap()
|
->wrap()
|
||||||
->color('gray')
|
->color('gray')
|
||||||
->label('Country')
|
->label('Country')
|
||||||
->icon(fn ($record) => $record->country->icon),
|
->icon(fn ($record) => $record->country->icon),
|
||||||
TextColumn::make('name')
|
|
||||||
->searchable(),
|
|
||||||
SelectColumn::make('level')
|
SelectColumn::make('level')
|
||||||
->width(30)
|
->width(30)
|
||||||
->options([
|
->options([
|
||||||
|
|||||||
@@ -56,18 +56,17 @@ class CountryResource extends Resource
|
|||||||
->recordAction(null)
|
->recordAction(null)
|
||||||
->recordTitleAttribute('name')
|
->recordTitleAttribute('name')
|
||||||
->columns([
|
->columns([
|
||||||
TextColumn::make('id')->searchable(),
|
TextColumn::make('id')->searchable()
|
||||||
|
->alignCenter()->tooltip('Click to copy'),
|
||||||
|
TextColumn::make('name')
|
||||||
|
->searchable()
|
||||||
|
->color('primary')
|
||||||
|
->copyable(),
|
||||||
IconColumn::make('icon')
|
IconColumn::make('icon')
|
||||||
->sortable()
|
->sortable()
|
||||||
->icon(function ($state): string {
|
->icon(function ($state): string {
|
||||||
return $state;
|
return $state;
|
||||||
})->label('Flags')->size(IconSize::TwoExtraLarge),
|
})->label('Flags')->size(IconSize::TwoExtraLarge),
|
||||||
TextColumn::make('name')
|
|
||||||
->searchable()
|
|
||||||
->copyable()
|
|
||||||
->copyMessage('Name copied')
|
|
||||||
->copyMessageDuration(1500),
|
|
||||||
// TextColumn::make('iso2'),
|
|
||||||
TextColumn::make('iso3'),
|
TextColumn::make('iso3'),
|
||||||
TextColumn::make('cc'),
|
TextColumn::make('cc'),
|
||||||
TextColumn::make('numeric'),
|
TextColumn::make('numeric'),
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class ElementsTable
|
|||||||
IconColumn::make('sport.icon')
|
IconColumn::make('sport.icon')
|
||||||
->label('')
|
->label('')
|
||||||
->grow(false)
|
->grow(false)
|
||||||
->color('primary')
|
|
||||||
->width(30)
|
->width(30)
|
||||||
->icon(fn ($record) => $record->sport->icon)
|
->icon(fn ($record) => $record->sport->icon)
|
||||||
->tooltip(fn ($record) => $record->id)
|
->tooltip(fn ($record) => $record->id)
|
||||||
@@ -47,6 +46,9 @@ class ElementsTable
|
|||||||
->tooltip('click to copy')
|
->tooltip('click to copy')
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
->copyable(),
|
->copyable(),
|
||||||
|
TextColumn::make('name')
|
||||||
|
->searchable()
|
||||||
|
->color('primary'),
|
||||||
TextColumn::make('country.name')
|
TextColumn::make('country.name')
|
||||||
->wrap()
|
->wrap()
|
||||||
->color('gray')
|
->color('gray')
|
||||||
@@ -60,7 +62,6 @@ class ElementsTable
|
|||||||
ImageColumn::make('betsapi_image_id')
|
ImageColumn::make('betsapi_image_id')
|
||||||
->label('Logo')
|
->label('Logo')
|
||||||
->defaultImageUrl(fn ($state) => url('https://assets.b365api.com/images/team/m/'.$state.'.png')),
|
->defaultImageUrl(fn ($state) => url('https://assets.b365api.com/images/team/m/'.$state.'.png')),
|
||||||
TextColumn::make('name')->searchable(),
|
|
||||||
])->filters([
|
])->filters([
|
||||||
SelectFilter::make('sport_id')
|
SelectFilter::make('sport_id')
|
||||||
->label('Sport')
|
->label('Sport')
|
||||||
|
|||||||
Reference in new issue
Block a user