index.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <div class="page-header">
  7. @if( check_auth('admin/video_vip/add') )
  8. <a href="{{url('admin/video_vip/add')}}" class="btn btn-primary">新增</a>
  9. @endif
  10. </div>
  11. <form action="" method="get" class="form-horizontal form-line">
  12. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  13. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  14. </div>
  15. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  16. <input type="text" class="form-control" name="custom_name" value="{{request('custom_name','')}}" placeholder="请输入客户昵称查询" />
  17. </div>
  18. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  19. <input type="text" class="form-control" name="custom_phone" value="{{request('custom_phone','')}}" placeholder="请输入客户手机号查询" />
  20. </div>
  21. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  22. <select class="form-control" name="status" >
  23. <option value="" >会员状态</option>
  24. <option value="0" @if( !is_null(request('status')) && request('status',0) == 0 ) selected @endif >启用</option>
  25. <option value="1" @if( !is_null(request('status')) && request('status',0) == 1 ) selected @endif >停用</option>
  26. </select>
  27. </div>
  28. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  29. <a href="{{url('admin/video_vip/index')}}" class="btn btn-sm btn-default" >重置</a>
  30. @csrf
  31. </form>
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="table-responsive">
  35. <table class="table table-striped table-bordered table-hover">
  36. <thead>
  37. <tr>
  38. <th>ID</th>
  39. <th>客户编码</th>
  40. <th>客户昵称</th>
  41. <th>会员手机</th>
  42. <th>会员效期</th>
  43. <th>会员状态</th>
  44. <th>修改时间</th>
  45. <th>操作</th>
  46. </tr>
  47. </thead>
  48. <tbody>
  49. @foreach ($list as $a)
  50. <tr>
  51. <td> {{$a['id']}}</td>
  52. <td> {{$a['custom_code']}}</td>
  53. <td> {{$a['custom_name']}}</td>
  54. <td> {{$a['custom_phone']}}</td>
  55. <td> {{date('Y/m/d H:i',$a['start_time'])}} ~ {{date('Y/m/d H:i',$a['end_time'])}}</td>
  56. <td> @if ($a['status'] == 0) 启用 @endif @if ($a['status'] == 1) 停用 @endif</td>
  57. <td> {{date('Y/m/d H:i',$a['update_time'])}}</td>
  58. <td>
  59. @if( check_auth('admin/video_vip/edit') )
  60. <a class="btn btn-sm btn-warning" href="{{url('admin/video_vip/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
  61. 修改
  62. </a>
  63. @endif
  64. @if( check_auth('admin/video_vip/set_status') )
  65. @if ( $a['status'] )
  66. <a class="delete btn btn-sm btn-success" data-url="{{url('admin/video_vip/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
  67. 启用
  68. </a>
  69. @else
  70. <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/video_vip/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
  71. 停用
  72. </a>
  73. @endif
  74. @endif
  75. </td>
  76. </tr>
  77. @endforeach
  78. <tr>
  79. <td colspan="20" class="page">{{$list->render()}}</td>
  80. </tr>
  81. <tr>
  82. <td colspan="20">总计 {{$list->total()}} 个类型</td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. </div>
  87. </div>
  88. </div>
  89. @endsection