From 9f30bc717488016bf4e60ce51fda60268dd8c3b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cihan=20=C5=9Eent=C3=BCrk?= <53110792+CihanSenturk@users.noreply.github.com> Date: Fri, 28 Mar 2025 11:13:02 +0300 Subject: [PATCH] fixed bulk action page and limit control --- app/View/Components/Index/Bulkaction.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/View/Components/Index/Bulkaction.php b/app/View/Components/Index/Bulkaction.php index b41e5c459..677f7a547 100644 --- a/app/View/Components/Index/Bulkaction.php +++ b/app/View/Components/Index/Bulkaction.php @@ -73,6 +73,20 @@ class Bulkaction extends Component } } + $query = []; + + if (request()->has('page')) { + $query['page'] = request()->get('page'); + } + + if (request()->has('limit')) { + $query['limit'] = request()->get('limit'); + } + + if ($query) { + $this->path .= '?' . http_build_query($query); + } + $actions = []; if ($bulk_action->actions) {