striped() ->columns([ TextColumn::make('name'), TextColumn::make('bookmaker') ->wrap() ->badge() ->formatStateUsing(fn (string $state): string => Bookmaker::where('id', $state)->pluck('name')->first()), TextColumn::make('provider') ->badge() ->wrap() ->color('success') ->formatStateUsing(fn (string $state): string => Provider::where('id', $state)->pluck('name')->first()), TextColumn::make('sport') ->badge() ->wrap() ->color('warning') ->formatStateUsing(fn (string $state): string => Sport::where('id', $state)->pluck('name')->first()), TextColumn::make('created_at')->dateTime(), TextColumn::make('updated_at')->dateTime(), ]) ->recordActions([ Action::make('multiline') ->icon('phosphor-gear-fine') ->tooltip('Generates basic alarm configuration for client') ->action(function ($record) { MultilineGenerator::run($record); }), Action::make('alarm') ->icon('phosphor-gear-fine') ->tooltip('Generates basic multiline configuration for client') ->action(function ($record) { AlarmGenerator::run($record); }), EditAction::make(), ]); } }