<form class="email-client-top" action="{{ url('/admin/email/inbox') }}">
    <input type="hidden" name="email" value="{{ $mail }}">
    <div class="current-mail-wrap">
        <div class="current-mail-show">
            <span>{{ $mail }}</span>
            <i class="iconfont icon-open"></i>
        </div>
        <ul class="current-mail-list">
            @foreach ($mails as $item )
                <li>{{ $item->email }}</li>
            @endforeach
        </ul>
    </div>
    <div class="write-email">
        <i class="iconfont icon-xiugaiziliao"></i>
        <span>写信</span>
    </div>
    <div class="pull-email">
        <i class="iconfont icon-weibiaoti102"></i>
        <span>收取</span>
    </div>
</form>

<!-- 发信 Modal -->
<div class="modal fade" id="send-email-modal" tabindex="-1" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="true"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">写邮件</h4>
            </div>
            <div class="modal-body clearfix">
                <div class="send-email-group">
                    <span>发件人：</span>
                    <input type="text" value="{{$mail}}" disabled name="email">
                </div>
                <div class="send-email-group">
                    <span><i>*</i>收件人：</span>
                    <div class="send-email-input">
                        <div class="enter-email-wrap">
                            <div class="enter-email-list" data-key="to"></div>
                            <input type="text" placeholder="请输入邮箱..." name="to">
                        </div>
                        <div class="enter-email-btns">
                            <span class="cc-btn"><i class="iconfont icon-add"></i><i class="iconfont icon--jianhao"></i> 抄送</span>
                            <span class="bc-btn"><i class="iconfont icon-add"></i><i class="iconfont icon--jianhao"></i> 密送</span>
                        </div>
                    </div>
                </div>
                <div class="send-email-group send-email-cc">
                    <span>抄送：</span>
                    <div class="send-email-input">
                        <div class="enter-email-wrap">
                            <div class="enter-email-list" data-key="cc"></div>
                            <input type="text" placeholder="请输入邮箱..." name="cc">
                        </div>
                    </div>
                </div>
                <div class="send-email-group send-email-bcc">
                    <span>密送：</span>
                    <div class="send-email-input">
                        <div class="enter-email-wrap">
                            <div class="enter-email-list" data-key="bcc"></div>
                            <input type="text" placeholder="请输入邮箱..." name="bcc">
                        </div>
                    </div>
                </div>
                <div class="send-email-group">
                    <span><i>*</i>主题：</span>
                    <input type="text" name="subject" placeholder="请输入主题...">
                </div>
                <div class="send-email-group send-email-attachments">
                    <span>附件：</span>
                    <div class="send-email-input">
                        <div class="enter-email-wrap">
                            <div class="enter-email-list" data-key="attachments"></div>
                        </div>
                    </div>
                </div>
                <div id="attachment-container">
                    <a id="attachment-uploader" data-type=2 class="filepath" href="javascript:;">附件上传</a>
                    <b></b>
                    <span class="text-muted">（文件大小2M内，支持xls/xlsx,doc/docx,ppt/pptx,pdf,zip,rar文件格式）</span>
                </div>
                <textarea id="editor-email" name="body"></textarea>
            </div>
            <div class="modal-footer">
                <button class="btn btn-default btn-modal-cancel btn-modal-close ml-10" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" id="send-email">发送</button>
            </div>
            <div class="send-email-modal-loading"><img src="/data/assets/images/email-loading.gif" alt=""></div>
        </div>
    </div>
</div>