{{if !empty($module_data['title']) and !empty($module_data['back_url'])}}
    <legend class="am-flex am-flex-items-center">
        <a href="{{$module_data.back_url}}" class="am-text-lg">
            <i class="iconfont icon-back"></i>
        </a>
        <em class="form-nav-top-retreat-ds am-color-grey-light am-text-xs am-margin-horizontal-sm">|</em>
        <div class="am-flex am-gap-1">
            <span class="am-text-sm am-font-weight">{{$module_data.title}}</span>
            {{if !empty($module_data['btn_text']) and !empty($module_data['btn_popup'])}}
                <em class="form-nav-top-btn-ds am-color-grey-light am-text-xs am-margin-horizontal-sm">|</em>
                <a href="javascript:;" class="am-text-primary am-text-sm" data-am-modal="{target: '{{$module_data.btn_popup}}'{{if !empty($module_data['btn_popup_width'])}},width: {{$module_data.btn_popup_width}}{{/if}}}">{{$module_data.btn_text}}</a>
            {{/if}}
        </div>
    </legend>
{{/if}}