123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <div class="page-header">
- @if( check_auth('admin/video_vip/add') )
- <a href="{{url('admin/video_vip/add')}}" class="btn btn-primary">新增</a>
- @endif
- </div>
- <form action="" method="get" class="form-horizontal form-line">
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="custom_name" value="{{request('custom_name','')}}" placeholder="请输入客户昵称查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="custom_phone" value="{{request('custom_phone','')}}" placeholder="请输入客户手机号查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
- <select class="form-control" name="status" >
- <option value="" >会员状态</option>
- <option value="0" @if( !is_null(request('status')) && request('status',0) == 0 ) selected @endif >启用</option>
- <option value="1" @if( !is_null(request('status')) && request('status',0) == 1 ) selected @endif >停用</option>
- </select>
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/video_vip/index')}}" class="btn btn-sm btn-default" >重置</a>
- @csrf
- </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>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $a)
- <tr>
- <td> {{$a['id']}}</td>
- <td> {{$a['custom_code']}}</td>
- <td> {{$a['custom_name']}}</td>
- <td> {{$a['custom_phone']}}</td>
- <td> {{date('Y/m/d H:i',$a['start_time'])}} ~ {{date('Y/m/d H:i',$a['end_time'])}}</td>
- <td> @if ($a['status'] == 0) 启用 @endif @if ($a['status'] == 1) 停用 @endif</td>
- <td> {{date('Y/m/d H:i',$a['update_time'])}}</td>
- <td>
- @if( check_auth('admin/video_vip/edit') )
- <a class="btn btn-sm btn-warning" href="{{url('admin/video_vip/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
- 修改
- </a>
- @endif
- @if( check_auth('admin/video_vip/set_status') )
- @if ( $a['status'] )
- <a class="delete btn btn-sm btn-success" data-url="{{url('admin/video_vip/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
- 启用
- </a>
- @else
- <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/video_vip/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
- 停用
- </a>
- @endif
- @endif
- </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
|