<?php /* /www/wwwroot/jian/resources/views/Admin/shalong_person.blade.php */ ?>
<?php $__env->startSection('admin'); ?>

<div class="content-wrapper" style="min-height: 810px;">
    <section class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h4>沙龙详情</h4>
          </div>
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="/admin/index">首页</a></li>
              <li class="breadcrumb-item active">沙龙管理</li>
              <li class="breadcrumb-item active">沙龙详情</li>
            </ol>
          </div>
        </div>
      </div>
    </section>
                <form class="form">
                    <div class="form-group m-4">
                        <label for="exampleInputName2" class="col-md-2"> 沙龙名称:　<?php echo e($shalong -> title); ?></label>
                    </div>
                </form>
                <form class="form">
                    <div class="form-group m-4">
                        <label for="exampleInputName2" class="col-md-2"> 名额:　<?php echo e($shalong -> person_num_ok); ?>/<?php echo e($shalong -> person_num); ?></label>
                    </div>
                </form>
                <form class="form">
                    <div class="form-group m-4">
                        <label for="exampleInputName2" class="col-md-6"> 报名截止时间:　<?php echo e(date('Y-m-d H:i:s',$shalong -> end_date)); ?></label>
                    </div>
                </form>
                <div class="col-xs-3">
                    <button class="btn btn-danger back" style="margin-left:17px;margin-bottom:15px"> 返回列表</button>
                </div>
    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-md-12">

            <div class="card">
              <div class="card-body p-0">
                <table class="table table-condensed">
                  <tbody>
               
                  <tr style="text-align:center">
                    <th>报名序号</th>
                    <th>用户名称</th>
                    <th>报名时间</th> 
                    <th>报名费用</th>
                  </tr>
                  <?php $__currentLoopData = $person; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <tr style="text-align:center">
                    <td><?php echo e($key + 1); ?></td>
                    <td><?php echo e($val -> openid); ?></td>
                    <td><?php echo e(date('Y-m-d H:i:s',$val -> time)); ?></td>
                    <td><?php echo e($val -> price); ?></td>
                  </tr>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody></table>
              </div>
            </div>
          </div>
        </div>
    </section>
  </div>
<script src="/admin/plugins/jquery/jquery.min.js"></script>
<script src="/admin/layer-v3.1.1/layer/layer.js"></script>
<script>
   $('.add').click(function(){
       window.location.href="/admin/shalong/add";
   })
   function del(id)
    {
        if(!id) {
            layer.msg('参数不全');
            return false;
        }
        layer.confirm('确认删除该文章吗？', {
            btn: ['确认','取消'] //按钮
            }, function(){
                $.get('/admin/shalong/delete',{id:id},function(res){
                    if(res.code == '1000'){
                        layer.msg(res.msg);
                        window.location.reload();
                    }else{
                        layer.msg(res.msg);
                    }
                })
        });
    }
    function status(id)
    {
        if(!id){
            layer.alert('参数错误');
            return false;
        }
        layer.confirm('确认操作吗？', {
            btn: ['确认','取消'] //按钮
            }, function(){
                $.get('/admin/shalong/status',{id:id},function(res){
                    if(res.code == '1000'){
                        layer.msg(res.msg);
                        window.location.reload();
                    }else{
                        layer.msg(res.msg);
                    }
                })
        });  
    }
    // 人工置顶
    function tops(id)
    {
        if(!id){
            layer.alert('参数错误');
            return false;
        }
        layer.confirm('确认操作吗？', {
            btn: ['确认','取消'] //按钮
            }, function(){
                $.get('/admin/shalong/top',{id:id},function(res){
                    if(res.code == '1000'){
                        layer.msg(res.msg);
                        window.location.reload();
                    }else{
                        layer.msg(res.msg);
                    }
                })
        });  
    }
    function edit(id)
    {
      if(!id){
        layer.alert('参数错误');
        return false;
      }
      window.location.href="/admin/shalong/edit/"+ id;
    }
    //查看报名详情
    function look(id)
    {
      if(!id) {
        layer.alert('参数错误');
        return false;
      }
      window.location.href="/admin/shalong/lookPerson/"+ id;
    }
    $('.back').click(function(){
        window.location.href="/admin/shalong/list";
    })
        
</script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('title','沙龙列表'); ?>
<?php $__env->startSection('sl','menu-open'); ?>
<?php $__env->startSection('sl2','active'); ?>
<?php $__env->startSection('all-sl','active'); ?>
<?php echo $__env->make('Public.index', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>