{foreach $columns as $k=>$v}
{$v.name}
{if !empty($v.child)} {foreach $v.child as $kk=>$vv} {$vv.name} {/foreach} {/if}
{/foreach}