{@ $cat_depth = 0;} {@ if($val->depth > $cat_depth) $cat_depth = $val->depth;} {@ if($cat_depth == 0) $col_width = 'col s12'; if($cat_depth == 1) $col_width = 'col s6'; if($cat_depth == 2) $col_width = 'col s4'; } {@ $selected_srl0 = $category} {@ $selected_srl0 = $val->parent_srl;$selected_srl1 = $category} {@ $selected_srl1 = $val->parent_srl;$selected_srl2 = $category} {@ $selected_srl0 = $val1->parent_srl}