user() ->automationRules() ->with('category:id,name,icon,color') ->orderBy('priority') ->get(); return response()->json($rules); } }