Card filters based on table filters

Hello everyone, I was wondering if it was possible to pass table filters "down/up" to cards within a resource and use them there. Tried looking at some possibilities but couldn't find a solution yet. What I have now:
Card::make(
__('Amount of', ['type' => __('credit', locale: 'nl')], 'nl'),
Transaction::credit()->count()
),
Card::make(
__('Amount of', ['type' => __('credit', locale: 'nl')], 'nl'),
Transaction::credit()->count()
),
I want to add some additional filters to the query when the table has been filtered on account_id = zzzzxxxxxccccc.
3 Replies
Patrick Boivin
Filament
How to Refresh Widgets When Table Actions Are Fired by Leandro C. F...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
Patrick Boivin
There are instructions specific to table filters at the end
wottavm
wottavmOP2y ago
Thanks for the link. Will check it out.
Want results from more Discord servers?
Add your server