columns([
TextColumn::make('name')
->searchable()
->sortable()
->formatStateUsing(fn ($state, $record) => sprintf(
'%s',
$record->color ?: '#6b7280',
e($state)
))
->html(),
TextColumn::make('slug')
->searchable(),
TextColumn::make('color')
->label(__('app.color'))
->formatStateUsing(fn ($state) => sprintf(
'',
$state ?: '#6b7280',
$state
))
->html(),
IconColumn::make('is_active')
->boolean()
->label(__('app.status_active')),
TextColumn::make('feedbacks_count')
->counts('feedbacks')
->label(__('app.feedbacks')),
TextColumn::make('created_at')
->dateTime()
->sortable()
->toggleable(),
])
->filters([
//
])
->recordActions([
EditAction::make(),
])
->toolbarActions([
BulkActionGroup::make([
DeleteBulkAction::make(),
]),
]);
}
}