<div class="tab-container">
    <p class="tab-desc p-sm mb-0">{$rslang->trans('support.cc_recipients_tab.desc')}</p>
    <div class="tab-details mb-0 {if is_array($ticketRecipietns) && $ticketRecipietns|@count == 0} hidden {/if}" data-lang-remove="{$LANG.orderForm.remove}">
        {foreach item=recipient from=$ticketRecipietns}
            <div data-recipient-email="{$recipient}">
                <div class="input-group input-group-xs input-group-icons ticket-cc-item">
                    <div class="input-group-prepend">
                        <i class="ls ls-user"></i>
                    </div>
                    <div class="form-control">{$recipient}</div>
                    <div class="input-group-append input-group-append-danger">
                        <button tabindex="0" type="button" data-toggle="modal" data-recipient="{$recipient}" data-target="#removeRecipients" aria-label="{$LANG.orderForm.remove}">
                            <i class="ls ls-trash" data-toggle="tooltip" data-original-title="{$LANG.orderForm.remove}"></i>
                        </button>
                    </div>
                </div>
            </div>
        {/foreach}
    </div>
    <div class="tab-no-data {if is_array($ticketRecipietns) && $ticketRecipietns|@count != 0}hidden{/if}">
        <p class="p-xs mb-0"> {$rslang->trans('support.cc_recipients_tab.no_data')}</p>
    </div>
    <form id="frmAddCcEmail" action="viewticket.php">
        <input type="hidden" name="token" value="{$token}">
        <input type="hidden" name="action" value="add">
        <input type="hidden" name="tid" value="{$tid}">
        <input type="hidden" name="c" value="{$c}">
        <div class="cc-actions form-actions mt-0" id="containerAddCcEmail">
            <div class="input-group input-group-preicon">
                <div class="input-group-prepend">
                    <i class="ls ls-user"></i>
                </div>
                <input id="inputAddCcEmail" type="text" class="form-control input-email" name="email" placeholder="{$rslang->trans('support.cc_recipients_tab.placeholder')}">
            </div>
            <button tabindex="0" class="btn btn-primary" type="submit" id="btnAddCcEmail">{$rslang->trans('support.cc_recipients_tab.add_recipients')}</button>
        </div>
    </form>
    <div class="alert alert-sm w-hidden mb-0" id="divCcEmailFeedback"></div>
</div>
{include file="$template/includes/view-ticket/modals/remove-recipients.tpl"}