validated('to')); $updatedCount = $action->handle($request->selection(), $request->target(), $to); Inertia::flash('toast', [ 'type' => $updatedCount > 0 ? 'success' : 'error', 'message' => $updatedCount > 0 ? trans_choice('crud.bulk_updated', $updatedCount) : __('crud.bulk_updated_none'), ]); // Back to the referring index, so view, filters, page and scroll survive. return back(); } }