<?php if($cartSelect): ?>
<div class="layui-form-item">
    <div class="layui-input-block pcub pcub-ac order-b">
        <div class="order-num position-re">
            <label onclick="clickProduct(this)"><span>已经选择资源</span> <i class="i cart-num"><?php echo e(count($cartSelect)); ?></i></label>
            <div class="chosen-box"><i></i>
                <!--<div class="close"><label for="chosenBox" for="chosenBox"></label></div>-->
                <div class="chosen-title">
                    <ul class="clear"><li>已选择资源<b class="theCartNum"><?php echo e(count($cartSelect)); ?></b><span>个</span></li><li>总金额<b class="theCartPrice_res"><?php echo e($cartMoney); ?></b><span>元</span></li><li>操作</li></ul>
                </div>
                <div class="chosen-tab">
                    <?php if(count($cartSelect) >= 1 && $cartSelect[0]): ?>
                        <?php $__currentLoopData = $cartSelect; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <ul class="clear" data-resid="<?php echo e($item->product['id']); ?>" data-price="<?php echo e($item->product['quota_min']); ?>" data-itemid="">
                            <input type="hidden" name="select[]" value="<?php echo e($item->product['id']); ?>">
                            <li><div class="res avatar article">
                                    <img class="list-img"  <?php if($item->product['created_from'] != 'cloud'): ?> src="<?php echo e(env('IMG_URL').$item->product['logo']); ?>"
                                         <?php else: ?> src="<?php echo e($item->product['logo']); ?>"  <?php endif; ?> onerror="javascript:this.src= '/images/avatar_icon.png'" style="width: 80px;height: 40px">
                                    
                                </div><span><?php echo e($item->product['name']); ?></span></li>
                            <li>￥<?php echo e($item->product['quota_min']); ?></li>
                            <li><span <?php if(!isset($info)): ?> class="del" <?php endif; ?> data-resid="<?php echo e($item->product['id']); ?>" data-price="<?php echo e($item->product['quota_min']); ?>"  vip-price="<?php echo e($item->vipMoney); ?>" data-itemid="<?php echo e($item->product['id']); ?>">×</span></li>
                        </ul>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        
                    <?php else: ?>
                        <ul class="clear" data-resid="<?php echo e($cartSelect->product['id']); ?>" data-price="<?php echo e($cartSelect->product['quota_min']); ?>" data-itemid="">
                            <input type="hidden" name="select[]" value="<?php echo e($cartSelect->product['id']); ?>">
                            <li><div class="res avatar article"><img src="<?php echo e(env('APP_URL').$cartSelect->product['logo']); ?>" style="width: 80px;height: 40px"></div><span><?php echo e($cartSelect->product['name']); ?></span></li>
                            <li>￥<?php echo e($cartSelect->product['quota_min']); ?></li>
                            <li><span <?php if(!isset($info)): ?> class="del" <?php endif; ?> data-resid="<?php echo e($cartSelect->product['id']); ?>" data-price="<?php echo e($cartSelect->product['quota_min']); ?>" vip-price="<?php echo e($cartSelect->vipMoney); ?>" data-itemid="<?php echo e($cartSelect->product['id']); ?>">×</span></li>
                        </ul>
                    <?php endif; ?>
                </div>
                <div class="chosen-add">
                    <label for="chosenBox" class="gray">关闭</label>
                    <label class="blue button reAddRes"><a href="<?php echo e($menu == 'article'? '/advert/index':'/advert/'.$menu); ?>">继续添加</a></label>
                    <span class="tips"></span>
                </div>
            </div>
            <div class="order-fixed"></div>
        </div>
        <div class="order-price pcub-f1 tx-r mr20">
            <label for="" class="protocol mr20">
                <input style="margin-top:0" type="checkbox" name="like1[write]" lay-skin="primary" title="同意" checked="">
                <a href="javascript:;" onclick="agreementShow(1)" >《用户协议》</a>
            </label>
            <label for="" class="price hide">
                <span>总金额：</span>
                <b><?php echo e($cartMoney); ?></b>
                <span>元</span>
            </label>
            <label for="" class="price">
                <span>总金额：</span>
                <b style="text-decoration:line-through;"><?php echo e($cartMoney); ?></b>
                <span>元</span>
                <span class="ml20">会员价：</span>
                <em id="order-huiyuanjia"><?php echo e($orderMoney); ?></em>
                <span>元</span>
            </label>
        </div>
        <button class="layui-btn" lay-submit="*" lay-filter="demo1">立即提交</button>
    </div>
</div>
<?php endif; ?>