Applying filter to a custom page

I have built a custom page on the admin panel builder. I have added a form and a table to the page. I also added a filter to the table and its showing it above the table content. now when I apply filters its not working. what am i doing wrong? here is a gist of the custom page https://gist.github.com/abdikafar/d3fe85fba35e74153b21f31fee0308b9
Gist
filament page idcard with filters
filament page idcard with filters. GitHub Gist: instantly share code, notes, and snippets.
5 Replies
Patrick Boivin
Patrick Boivin17mo ago
Can you share your Blade view also?
.abdikafar
.abdikafarOP17mo ago
yeah, this is how the blade view look like
<x-filament::page>
<x-filament::form wire:submit.prevent="submit">
{{$this->form}}
</x-filament::form>
{{$this->table}}
</x-filament::page>
<x-filament::page>
<x-filament::form wire:submit.prevent="submit">
{{$this->form}}
</x-filament::form>
{{$this->table}}
</x-filament::page>
LeandroFerreira
LeandroFerreira17mo ago
it's ok for me. you don't need HasForms InteractsWithForms $this->validate() Can you give us more details about the issue?
.abdikafar
.abdikafarOP17mo ago
The main issue is that the filter doesn't apply to the table for example when I select a date other pages of the regular resources work fine. But with custom pages I have two custom pages. fitters doesn't work
LeandroFerreira
LeandroFerreira17mo ago
what is the error? any console error?
Want results from more Discord servers?
Add your server