InfoList Tabs Query
For example Meetings hasMany resolutions and resolutions table consists of a boolean column 'resolution_passed' as true or false:
How to filter as 'Passed' and 'Rejected' and show in separate tabs in infoList tabs:
Section::make('Resolutions details')
->schema([
Tabs::make('Resolutions')
->tabs([
Tabs\Tab::make('Passed')
->schema([
// query resolutions where 'resultion_passed' = true
]),
Tabs\Tab::make('Rejected')
->schema([
// query resolutions where 'resultion_passed' = false
]),
])
])
->compact()
->collapsible()
Solution:Jump to solution
thanks sir....its ->state()
```php
Tabs::make('Resolutions Details')
->tabs([
Tabs\Tab::make('Passed')...
6 Replies
You want to show a table in a tab? You cannot nest tables in forms. You need a custom Livewire component for this.
Also please check #✅┊rules on how to format code.
Sure sir.. I am using InfoList Tabs inside my Resource and want to filter the query to show filtered results in separate tabs e.g. one tab showing "Passed" and other tab showing "Rejected" results based on where condition.
You didn't add more information with this. You can try a Repeater if it's related records. But you cannot show a Filament table inside an info list
Yes sir i m using RepeatableEntry inside each tab:
I am using the above code inside Resource page infoList:
I think you could overwrite is somehow with
->getStateUsing()
Solution
thanks sir....its ->state()