<div class="tb-{$type['id']} md:flex">
  {foreach $data as $column name="colloop"}
    {$columnContain = []}
    {$renderTemplates = []}
    
    {foreach $column as $block}
        {if isset($block['type']['id']) && !empty($block['type']['id'])}
            {$columnContain[] = $block['type']['id']}

            {$templateFileName = "blocks/"|cat:$block['type']['id']|cat:".html"}
            {capture name="catpure-renderTemplates" append="renderTemplates"}
                {include file=$templateFileName data=$block['data'] type=$block['type']}
            {/capture}
        {/if}
    {/foreach}

    <div class="md:flex-1 {if !$smarty.foreach.colloop.first}md:ml-8{/if}" data-tb-contain="{$columnContain|implode:' '}">
        {$renderTemplates|implode:' ' nofilter}
    </div>
  {/foreach}
</div>
