script to layout active objects softbody settings

I need help laying out active objects softbody setting " Bending" in the toolbar as its own panel.

Tried this, but didnt work. Any ideas?

if ob is not None:
    
    for mod in ob.modifiers:
                        
    
        if mod.type == 'SOFT_BODY' and mod.use_edges==True:
            
            
            

            

        
 

            mod = mod.soft_body.settings

            

 

           
            layout.prop(mod, "bend", text="Bending")

anyone know how to?

Does it give you an error?

@CoDEmanX
I just figured it out, thanks for replying btw.

Had to change :
mod = mod.soft_body.settings

to:

mod = mod.settings