Add table filter to header actions
Is there a simple way to add the table filter to the header rather than have it appear below the title section on a table?
public function table(Table $table): Table
{
return $table
->query(
RequiredAction::query()
->with('actionable')
->where('next_due_date', '>', Carbon::now())
->orderBy('next_due_date')
->limit(5)
)
...
->filters([
SelectFilter::make('actionable_type')
->label('Type')
->options([
Frame::class => 'Frame',
Picture::class => 'Picture',
]),
])public function table(Table $table): Table
{
return $table
->query(
RequiredAction::query()
->with('actionable')
->where('next_due_date', '>', Carbon::now())
->orderBy('next_due_date')
->limit(5)
)
...
->filters([
SelectFilter::make('actionable_type')
->label('Type')
->options([
Frame::class => 'Frame',
Picture::class => 'Picture',
]),
])