{assign var="iconsPath" value="./../../../../assets/svg-icons/"}
<div class="section__steps {if !isset($isBundleLicense) || (isset($isBundleLicense) && !$isBundleLicense) || !$installAgreement}is-hidden{/if}" data-lagom-install-section-steps>
    <div class="d-flex justify-content-center">
        {foreach $bundles as $key => $bundle}
            {if $key != "Leased Bundle"}
                <div class="widget widget--bundle" data-lagom-install-widget="{$key|lower|replace:" ":"-"}">
                    <div class="widget__content">
                        {$icon = $key|lower|replace:" ":"-"}
                        <div class="widget__icon">
                            {if file_exists("{$whmcsDir|regex_replace:"/:\d+/" : ""}/modules/addons/RSThemes/assets/svg-icons/products/{$icon}.tpl")}                              
                                {include file="{$iconsPath}/products/{$icon}.tpl"}
                            {/if}
                            {if file_exists("{$whmcsDir|regex_replace:"/:\d+/" : ""}/modules/addons/RSThemes/assets/svg-icons/install/loader.tpl")}                              
                                {include file="{$iconsPath}/install/loader.tpl"}
                            {/if}
                            {if file_exists("{$whmcsDir|regex_replace:"/:\d+/" : ""}/modules/addons/RSThemes/assets/svg-icons/install/check.tpl")}                              
                                {include file="{$iconsPath}/install/check.tpl"}
                            {/if}
                        </div>
                        <div class="widget__name">{$key}</div>
                    </div>
                </div>
            {/if}
        {/foreach}
    </div>
</div>