wip event mapper

This commit is contained in:
salam committed 2026-02-04 12:47:48 +01:00
1 parent 75b8c6c3ab
commit 3a289dd776
17 files changed
+273 -157

No files matched your search

+15 -14
View File
@@ -50,22 +50,22 @@ class AlarmBookmaker extends Component implements HasActions, HasSchemas, HasTab
->where('sport_id', auth()->user()->sport_id))
->paginated(false)
->columns([
IconColumn::make('sport.icon')
->label('')
->width('1rem')
->icon(function ($record): string {
return $record->sport->icon;
})
->color(fn ($record): string => match ($record->level_id) {
1 => 'success',
2 => 'warning',
3 => 'danger',
}),
TextColumn::make('sport.name'),
TextColumn::make('multiline_setting.name')->label('Bettype'),
// IconColumn::make('sport.icon')
// ->label('')
// ->width('1rem')
// ->icon(function ($record): string {
// return $record->sport->icon;
// })
// ->color(fn ($record): string => match ($record->level_id) {
// 1 => 'success',
// 2 => 'warning',
// 3 => 'danger',
// }),
// TextColumn::make('sport.name'),
TextColumn::make('name')
->badge()
->color(fn ($record): string => match ($record->level_id) {
1 => 'success',
1 => 'info',
2 => 'warning',
3 => 'danger',
}),
@@ -74,6 +74,7 @@ class AlarmBookmaker extends Component implements HasActions, HasSchemas, HasTab
->width('2rem')
->prefix('Threshold:')
->rules(['required', 'decimal:2', 'between:0,2']),
TextColumn::make('multiline_setting.name')->label('Bettype'),
ToggleColumn::make('disabled'),
])
->defaultSort('level_id')