This commit is contained in:
salam committed 2026-02-08 08:12:57 +01:00
1 parent e97c7cd0f4
commit 95315d1453
8 files changed
+90 -72

No files matched your search

+8 -5
View File
@@ -29,16 +29,19 @@ class PersonalNotificationTable extends Component implements HasActions, HasSche
public function table(Table $table): Table
{
return $table
->query(PersonalNotification::query()->with('bookmaker')->where('user_id', auth()->user()->id))
->query(PersonalNotification::query()
->with('bookmaker')
->where('alarm_level_id', '>', 1)
->where('user_id', auth()->user()->id))
->description('Send a notification when favorit enters an alarm level.')
->striped()
->columns([
BookmakerIcon::make('bookmaker.icon')
->label('Bookmaker')->size('lg'),
TextColumn::make('alarm_level.name')
->color(fn ($record) => $record->alarm_level->color)
->weight(FontWeight::Black)
->extraCellAttributes(['class' => 'alarm-level-style']),
->weight(FontWeight::Black),
BookmakerIcon::make('bookmaker.icon')
->alignCenter()
->label('Bookmaker')->size('sm'),
])
->defaultSort('alarm_level_id', 'desc')
->deferFilters(false)