123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <form action="" method="get" class="form-horizontal form-line">
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
- </div>
- <div class="form-group col col-md-1" style="margin-right: 2px;">
- <select name="status" class="form-control">
- <option value="" >状态</option>
- <option value="0" @if (request('status') === '0' ) selected="selected" @endif >拼团中</option>
- <option value="1" @if (request('status') === '1' ) selected="selected" @endif >取消拼团</option>
- <option value="2" @if (request('status') === '2' ) selected="selected" @endif >拼团成功</option>
- <option value="3" @if (request('status') === '3' ) selected="selected" @endif >拼团失败</option>
- </select>
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/regiment/index')}}" class="btn btn-sm btn-default" >重置</a>
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>团单ID</th>
- <th>参与活动/活动编码</th>
- <th>产品名称/产品编码</th>
- <th>发起客户昵称/发起客户编码</th>
- <th>商业公司</th>
- <th>拼团状态</th>
- <th>开始时间</th>
- <th>结束时间</th>
- <th>修改时间</th>
- </tr>
- </thead>
-
- <tbody>
- @foreach ($list as $a)
- <tr>
- <th>{{$a['id']}}</th>
- <td>{{$a['active_name']}}<br/>{{$a['active_code']}}</td>
- <td style="white-space:pre">{{$a['product_name']}}<br/>{{$a['product_code']}}</td>
- <td>
- @if( $a['custom_uid'])
- {{$a['username']}}<br/>{{$a['custom_code']}}
- @else
- 商家发起
- @endif
- </td>
- <td>{{$a['business_name']}}</td>
- <td>
- @if( $a['status'] == 1 )
- 拼团中
- @endif
- @if( $a['status'] == 2 )
- 拼团失败
- @endif
- @if( $a['status'] == 3 )
- 拼团成功
- @endif
- </td>
- <td>{{date('Y/m/d H:i:s',$a['start_time'])}}</td>
- <td>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
- <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个商店</td>
- </tr>
- </tbody>
-
- </table>
- </div>
- </div>
- </div>
- @endsection
|