<div class="block-{$type['id']} mb-4">
    <div>{$data["title"]}</div>
    {foreach $data["group"] as $item}
        {$itemContain = []}
        {$renderTemplates = []}
        {$accordionTitle = $item["title"]}

        {foreach $item["content"] as $block}
            {if $block['type']['id']}
                {$itemContain[] = $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}

        <details>
            <summary>{$accordionTitle}</summary>
            <div data-tb-contain="{$itemContain|implode:' '}">
                {$renderTemplates|implode:' ' nofilter}
            </div>
        </details>
    {/foreach}
</div>