Filter checkbox for 'hidden' records

Can anyone help point me in the direction of some documentation or resource to help with adding an additional checkbox filter to the tables. I have a boolean field, (isDisabled), to indicate a record is 'hidden\disabled' . In an ideal world, I'd have a checkbox adjacent to the 'filter' button, defaulted to checked, with a label "Exclude hidden\disabled". This would introduce the relevant query to exclude the hidden records, and obviously ignore this part of the query when user unchecks.
5 Replies
toeknee
toeknee5mo ago
Filter::make('is_disabled')
->label('Exclude hidden\disabled')
->checkbox()
->default(),
Filter::make('is_disabled')
->label('Exclude hidden\disabled')
->checkbox()
->default(),
Matthew
MatthewOP5mo ago
Two ->label ? I'm familiar with adding the filters, what I'm trying to achieve is putting the filter checkbox directly on the top of the table, rather than within the Filters button
Matthew
MatthewOP5mo ago
No description
Matthew
MatthewOP5mo ago
Appreciate that, shall get stuck into that.
Want results from more Discord servers?
Add your server