columns([ ImageColumn::make('featured_image') ->disk('public') ->label(''), TextColumn::make('title') ->searchable() ->sortable() ->weight('medium') ->limit(50), TextColumn::make('category.name') ->label('Category') ->badge() ->placeholder('—') ->searchable(), TextColumn::make('status') ->badge() ->sortable(), TextColumn::make('user.name') ->label('Author') ->searchable(), TextColumn::make('published_at') ->dateTime() ->sortable() ->placeholder('—'), TextColumn::make('created_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), TextColumn::make('updated_at') ->dateTime() ->sortable() ->toggleable(isToggledHiddenByDefault: true), ]) ->defaultSort('created_at', 'desc') ->filters([ SelectFilter::make('status') ->options(PostStatus::class), SelectFilter::make('category') ->relationship('category', 'name'), ]) ->recordActions([ EditAction::make(), ]) ->toolbarActions([ BulkActionGroup::make([ DeleteBulkAction::make(), ]), ]); } }