{if $alert}
    <div class="alert alert--{$alert.type} alert--faded has-actions ">
        <div class="alert__body">
            <div class="alert__content">
                <div class="alert__title">
                    {include file="./../../../assets/svg-icons/widgets/lagom-admin/alert-title-icon.tpl"}
                    {$alert.title}
                </div>
                {$alert.body}
            </div>
            {if $alert.actions}
                <div class="alert__actions">
                    {foreach from=$alert.actions item=action}
                        <a href="{$action.href}"
                           class="{$action.class}"
                           {if $action.target}target="{$action.target}"{/if}
                           {if $action.attributes}{$action.attributes}{/if}
                        >
                            {if $action.icon}
                                {include file="./../../../assets/svg-icons/widgets/lagom-admin/{$action.icon}.tpl"}
                            {/if}
                            <span class="btn__text">{$action.label}</span>
                            {if $action.has_loader}
                                <span class="btn__preloader preloader preloader--sm"></span>
                            {/if}
                        </a>
                    {/foreach}
                </div>
            {/if}
        </div>
    </div>
{/if}
