<div id="page-wrapper" class="gray-bg">
    @include('layouts.header')

    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title" style="border-top:0;">
                        <?php 
                            $currency = $order_info->currency == 1 ? '¥' : '$'; 
                        ?>

                        <div class="section-1">
                            <img src="../img/success.png" alt="提交成功">
                            <h3>订单提交成功</h3>
                            <p>下单时间:{{ date('Y-m-d H:i:s', $order_info->create_time) }}</p>
                            @if ($type == 1) 
                                <p class="title-tips"><i class="fa fa-info-circle"></i>可在订单中心完善发票信息,最迟在客户付款前一定要完善发票信息,否则无法同步至ERP</p>
                            @elseif ($type == 3) 
                                <p class="title-tips"><i class="fa fa-info-circle"></i>为了方便后续操作,请将如下订单编号,备注在ERP中的采购单中。</p>
                            @endif
                        </div>

                        <div class="section-2">
                            @if ($type != 3) 
                                <style>.section-2{height: 150px;}</style>
                                <p>手机号码:{{ $user_info->mobile }}</p>  
                            @endif
                            <p>订单编号:{{ $order_info->order_sn }}</p>
                            <p>应付金额:<span class="text-danger">{{ $currency.$order_info->order_amount }}</span></p>

                            @if ($type == 2) 
                                <div style="text-align: center;">付款地址:{{ Config('website.pay_online_url').$order_info->order_id }}</div>
                            @endif
                        </div>

                        <div class="section-3">
                            @if ($type == 1)
                                <a class="btn btn-success" href="/change/{{ $order_info->order_id }}">审核订单</a>
                                <a class="btn btn-default" href="/add_order">继续新增</a>
                            @elseif ($type == 2)
                                <a class="btn btn-success" href="/self_order">查看订单</a>
                                <a class="btn btn-default" href="/add_online">继续新增</a>
                            @else
                                <a class="btn btn-success" href="/self_order">查看订单</a>
                                <a class="btn btn-default" href="/add_offline">继续新增</a>
                            @endif             
                        </div>
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</div>

<script>  
	// $.lie.add_order.offline();
</script>