<div 
    class="modal modal-danger modal-danger-remove fade"
    tabindex="0" 
    id="closeTicket"
    {if isset($sensitiveDataEnabled) && $sensitiveDataEnabled && (isset($sensitiveDataOptions) && $sensitiveDataOptions == "new") && isset($ticketCloseRemoveSensitive) && $ticketCloseRemoveSensitive == 1}
        data-sensitivedata-modal-close-ticket
    {/if}
>
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button tabindex="0" type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="lm lm-close"></i></button>
                <h5 class="modal-title h6">
                    {$rslang->trans('support.close_ticket_modal.modal_title')}
                </h5>
            </div>
            <div class="modal-body">
                <p class="p-lg">{$rslang->trans('support.close_ticket_modal.modal_desc')}</p>
                <p class="p-lg">{$rslang->trans('support.close_ticket_modal.modal_info')}</p>
                {if isset($ticketCloseRemoveSensitiveType) && $ticketCloseRemoveSensitiveType == "check"}
                <div class="checkbox mt-0">
                    <label>
                        <input class="icheck-control" type="checkbox" name="" value="" data-sensitivedata-modal-close-ticket-checkbox>
                        <span class="p-md">{$sensitiveDataTranslations->getClientTranslation("ticket_close_removal.confirm")|unescape:'html'}</span>
                    </label>
                </div>
                {elseif isset($ticketCloseRemoveSensitiveType) && $ticketCloseRemoveSensitiveType == "auto"}
                    <input class="hidden" checked type="checkbox" name="" value="" data-forced data-sensitivedata-modal-close-ticket-checkbox>
                {/if} 
            </div>
            <div class="modal-footer">
                <button tabindex="0" 
                    type="button" 
                    class="btn btn-danger" 
                    data-btn-loader
                    {if isset($sensitiveDataEnabled) && $sensitiveDataEnabled && (isset($sensitiveDataOptions) && $sensitiveDataOptions == "new") && isset($ticketCloseRemoveSensitive) && $ticketCloseRemoveSensitive == 1}
                        data-sensitivedata-modal-close-ticket-submit
                        data-location-href="?tid={$tid}&amp;c={$c}&amp;closeticket=true&amp;token={$token}'"
                    {else}
                        onclick="window.location='?tid={$tid}&amp;c={$c}&amp;closeticket=true&amp;token={$token}'"    
                    {/if}    
                >
                    <span>{$LANG.confirm}</span>
                    <div class="loader loader-button hidden" >
                        {include file="$template/includes/common/loader.tpl" classes="spinner-sm spinner-light"}  
                    </div>
                </button>
                <button tabindex="0" 
                    type="button" 
                    class="btn btn-default" 
                    data-dismiss="modal"
                    {if isset($sensitiveDataEnabled) && $sensitiveDataEnabled && (isset($sensitiveDataOptions) && $sensitiveDataOptions == "new")}
                        data-sensitivedata-modal-close-ticket-cancel
                    {/if}    
                >
                    {$LANG.cancel}
                </button>
            </div>
        </div>
    </div>
</div>