bind_list.blade.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @extends('base.base')
  2. @section('base')
  3. <div class="container-fluid">
  4. <div class="row">
  5. <div class="col-12">
  6. <div class="card">
  7. <div class="card-header">
  8. <h3 class="card-title">绑定关系查询</h3>
  9. </div>
  10. <div class="card-body">
  11. <form class="form-inline mb-4" method="get" action="{{ route('admin.extension_new.bind_list') }}">
  12. <div class="form-group mx-sm-3 mb-2">
  13. <label for="start_time" class="mr-2">选择注册时间:</label>
  14. <input type="datetime-local" name="start_time" id="start_time" class="form-control" value="{{ $start_time }}">
  15. </div>
  16. <div class="form-group mx-sm-3 mb-2">
  17. <input type="datetime-local" name="end_time" id="end_time" class="form-control" value="{{ $end_time }}">
  18. </div>
  19. <div class="form-group mx-sm-3 mb-2">
  20. <label for="UserID" class="mr-2">会员ID:</label>
  21. <input type="text" class="form-control" name="UserID" id="UserID" value="{{ $UserID }}">
  22. </div>
  23. <div class="form-group mx-sm-3 mb-2">
  24. <label for="SpreaderID" class="mr-2">上级ID:</label>
  25. <input type="text" class="form-control" name="SpreaderID" id="SpreaderID" value="{{ $SpreaderID }}">
  26. </div>
  27. <div class="form-group mx-sm-3 mb-2">
  28. <label for="sort" class="mr-2">排序:</label>
  29. <select name="sort" id="sort" class="form-control">
  30. <option value="">请选择</option>
  31. <option value="downCount1 + downCount2" @if($request->input('sort') == 'downCount1 + downCount2') selected @endif>按最多排序</option>
  32. </select>
  33. </div>
  34. <button type="submit" class="btn btn-primary mb-2 mr-2">搜索</button>
  35. <a href="{{ route('admin.extension_new.bind_list') }}" class="btn btn-warning mb-2">清空</a>
  36. </form>
  37. <div class="table-responsive">
  38. <table class="table table-bordered">
  39. <thead>
  40. <tr>
  41. <th>会员ID</th>
  42. <th>TA的上级ID</th>
  43. <th>已发放额度</th>
  44. <th>账号创建时间</th>
  45. <th>最后登录时间</th>
  46. {{-- <th>所有下级人数</th>--}}
  47. <th>直属下级</th>
  48. {{-- <th>下下级</th>--}}
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @foreach($list as $v)
  53. <tr>
  54. <td>
  55. <a href="/admin/global/id_find?UserID={{$v->UserID}}">
  56. {{$v->GameID}}
  57. </a>
  58. </td>
  59. <td>
  60. <a href="/admin/global/id_find?UserID={{$v->SpreaderID}}">
  61. {{ $v->SpreaderGameID }}
  62. </a>
  63. </td>
  64. <td>{{ $v->Rewards }}</td>
  65. <td>{{$v->RegisterDate??""}}</td>
  66. <td>{{ $v->LastLogonDate??"" }}</td>
  67. {{-- <td>{{$v->downCount1 + $v->downCount2}}</td>--}}
  68. <td>
  69. @if($v->downCount1 > 0)
  70. {{$v->downCount1}}
  71. @else
  72. {{$v->downCount1}}
  73. @endif
  74. </td>
  75. {{-- <td>--}}
  76. {{-- @if($v->downCount2 > 0)--}}
  77. {{-- {{$v->downCount2}}--}}
  78. {{-- @else--}}
  79. {{-- {{$v->downCount2}}--}}
  80. {{-- @endif--}}
  81. {{-- </td>--}}
  82. </tr>
  83. @endforeach
  84. </tbody>
  85. </table>
  86. </div>
  87. <div class="card-footer clearfix">
  88. 总共 <b>{{ $list->appends($request->all())->total() }}</b> 条,分为<b>{{ $list->lastPage() }}</b>页
  89. {{ $list->links() }}
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. @endsection
  97. @section('scripts')
  98. <script>
  99. $(function() {
  100. $('#start_time, #end_time').datetimepicker({
  101. format: 'YYYY-MM-DD HH:mm:ss'
  102. });
  103. });
  104. </script>
  105. @endsection