1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- @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-2 col-sm-2 col-xs-2" 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-2" style="margin-right: 2px;">
- <input type="text" class="form-control" name="phone" value="{{request('phone','')}}" placeholder="请输入联系方式查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
- <input type="text" class="form-control" name="weiban_extid" value="{{request('weiban_extid','')}}" placeholder="请输入微伴ID查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" 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>
- </select>
- </div>
- <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
- <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/custom/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>客户编码</th>
- <th>客户昵称</th>
- <th>联系方式</th>
- <th>客户积分</th>
- <th>微伴ID</th>
- <th>客户状态</th>
- <th>创建时间</th>
- <th>更新时间</th>
- <th>操作</th>
- </tr>
- </thead>
-
- <tbody>
- @foreach ($list as $a)
- <tr>
- <th> {{$a['custom_code']}} </th>
- <td> {{$a['username']}} </td>
- <td> {{$a['phone']}} </td>
- <td> {{$a['custom_score']['score']}} </td>
- <td> {{$a['weiban_extid']}} </td>
- <td> {{$a['status']?'禁用':'正常'}} </td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
- <td>
- @if(check_auth('admin/custom/edit'))
- <a href="{{url('admin/custom/edit?'.http_build_query(['uid'=>$a['uid']]))}}" class="btn btn-sm btn-warning" >编辑</a>
- @endif
- @if(check_auth('admin/custom_score/incr'))
- <a href="{{url('admin/custom_score/incr?'.http_build_query(['custom_uid'=>$a['uid']]))}}" class="btn btn-sm btn-success" >增加积分</a>
- @endif
- @if(check_auth('admin/custom_score/decr'))
- <a href="{{url('admin/custom_score/decr?'.http_build_query(['custom_uid'=>$a['uid']]))}}" class="btn btn-sm btn-danger" >扣减积分</a>
- @endif
- @if(check_auth('admin/custom/set_status'))
- @if( $a['status'] )
- <a data-url="{{url('admin/custom/set_status?'.http_build_query(['uid'=>$a['uid'],'status'=>0]))}}" class="set_status btn btn-sm btn-success" >取消拉黑</a>
- @else
- <a data-url="{{url('admin/custom/set_status?'.http_build_query(['uid'=>$a['uid'],'status'=>1]))}}" class="set_status btn btn-sm btn-danger" >拉黑</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
|