Skip to content
Discussion options

You must be logged in to vote

Hey @prescriptionlifeline

The filters works on ajax and they can't be removed without page reload.

For now, you can use dropdown or select2 filter in your use case, so one status is selected at a time.
For example:

CRUD::filter('status')
    ->type('dropdown')
    ->values([
        'unpaid' => 'unpaid',
        'paidOnline' => 'paidOnline',
    ])
    ->whenActive(function ($value) {
        CRUD::addClause('where', 'status', $value);
    });

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by karandatwani92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants