I have a category table with fields name, slug,parent_id.
I am trying to display them in a nested optgroup where the parent category with child can\'t be selected and dis