{if !$installAgreement}
    <div class="section__actions section__actions--agreement" data-lagom-install-license-agreement-actions>
        <div class="section__actions-form">
            <div class="form-group m-b-1x">
                <label class="checkbox m-t-0x align-items-start">
                    <input class="form-checkbox" type="checkbox" name="lagom_client_theme_install_agreement_license" data-lagom-install-license-agreement> 
                    <span class="form-indicator"></span>
                    <span class="form-text">I have read and agree to the terms of the License Agreement.</span>
                </label>
            </div>
            <div class="form-group m-b-0x">
                <label class="checkbox m-t-0x align-items-start">
                    <input class="form-checkbox" type="checkbox" name="lagom_client_theme_install_agreement_eula" data-lagom-install-license-agreement> 
                    <span class="form-indicator"></span>
                    <span class="form-text">I have read and agree to the terms of the End-User License Agreement (EULA).</span>
                </label>
            </div>
        </div>
        <button 
            type="button"
            class="btn btn--primary btn--lg is-disabled"
            data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=installAddon"
            data-lagom-install-license-agreement-continue
            data-btn-loader
        >
            <span class="btn__preloader preloader preloader--light"></span>
            <span class="btn__text">
                Continue
            </span>
        </button> 
    </div>
{/if}
<div class="section__actions {if !$installAgreement}is-hidden{/if}" data-lagom-install-actions>
    <button 
        type="button"
        class="btn btn--primary btn--lg {if isset($licenseValidation) && $licenseValidation}is-hidden{/if}"
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=installAddon"
        data-lagom-install-submit
        data-btn-loader
    >
        <span class="btn__preloader preloader preloader--light"></span>
        <span class="btn__text">
            Continue
        </span>
    </button>
    <button 
        type="button"
        class="btn btn--primary btn--lg {if !isset($licenseValidation) || !$licenseValidation}is-hidden{/if}"
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=installAddon&step=3"
        data-lagom-install-start
        data-btn-loader
    >
        <span class="btn__preloader preloader preloader--light"></span>
        <span class="btn__text">
            Start Installation
        </span>
    </button>
    <button 
        type="button"
        class="btn btn--primary btn--lg is-hidden" 
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=ignore&step="
        data-lagom-install-ignore
        data-step
    >
        Ignore & Continue
    </button>
    <button 
        type="button"
        class="btn btn--primary btn--lg is-hidden" 
        data-lagom-install-info
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=updateAddon"
    >
        Understood & Continue
    </button>
    <button 
        type="button"
        class="btn btn--primary btn--lg is-hidden" 
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=installAddon"
        data-lagom-install-error
        data-lagom-try-again
    >
        Try Again
    </button>
    <button 
        type="button"
        class="btn btn--primary btn--lg is-hidden" 
        data-ajax-url="{$whmcsURL}/modules/addons/RSThemes/src/Api/adminApi.php?controller=InstallApi&templateName={$smarty.get.templateName}&method=installAddon"
        data-lagom-try-again-license-btn
        data-lagom-try-again-license
    >
        Try Again
    </button>
    <a 
        href="https://rsstudio.net/my-account/submitticket.php?step=2&deptid=2"
        class="btn btn--default btn--outline btn--lg is-hidden" 
        target="_blank"
        data-lagom-install-error
        data-lagom-install-support
        data-lagom-try-again-license
    >
        Contact Us
    </a>
    <button 
        class="btn btn--primary btn--lg is-hidden" 
        href="#"
        data-lagom-install-complete
        data-lagom-install-redirect
    >
        Open RS Themes
    </button>
    <a 
        href="https://lagom.rsstudio.net/docs/"
        class="btn btn--default btn--outline btn--lg is-hidden" 
        target="_blank"
        data-lagom-install-complete
    >
        Documentation
    </a>
</div>