check.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. @extends('admin.layout')
  2. @section('content')
  3. <div class="wrapper wrapper-content animated fadeInRight">
  4. <div class="row">
  5. <div class="col-sm-12">
  6. <div class="ibox float-e-margins">
  7. <div class="ibox-title">
  8. <h5>用户管理</h5>
  9. <div class="ibox-tools">
  10. <a class="collapse-link"> <i class="fa fa-chevron-up"></i>
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <div class="row">
  16. <form method="GET" action="" accept-charset="UTF-8">
  17. <div class="col-sm-4">
  18. <div class="input-group">
  19. <input type="text" value="{{Request::get('keyword')}}" placeholder="请输入关键词" name="keyword"class="input-sm form-control">
  20. <span class="input-group-btn">
  21. <button type="submit" class="btn btn-sm btn-primary">搜索</button>
  22. </span>
  23. </div>
  24. </div>
  25. </form>
  26. @if(role('User/Info/create'))
  27. <div class="col-sm-3 pull-right">
  28. <a href="{{ U('User/Info/create')}}" class="btn btn-sm btn-primary pull-right">添加</a>
  29. </div>
  30. @endif
  31. </div>
  32. <table class="table table-striped table-bordered table-hover dataTables-example dataTable dataCheckTable">
  33. <thead>
  34. <tr>
  35. <th><input class="btSelectAll" name="btSelectAll" type="checkbox"></th>
  36. <th class="sorting" data-sort="id"> 用户ID </th>
  37. <th class="sorting" data-sort="username"> 登录名 </th>
  38. <th class="sorting" data-sort="real_name"> 姓名 </th>
  39. <th class="sorting" data-sort="password"> 密码 </th>
  40. <th class="sorting" data-sort="email"> EMAIL </th>
  41. <th class="sorting" data-sort="mobile"> 手机号 </th>
  42. <th class="sorting" data-sort="avatar"> 用户头像 </th>
  43. <th class="sorting" data-sort="gender"> 性别,1:男,2:女,参照数据字典 </th>
  44. <th class="sorting" data-sort="province"> 居住地址省 </th>
  45. <th class="sorting" data-sort="city"> 居住地址市 </th>
  46. <th class="sorting" data-sort="county"> 居住地址区县 </th>
  47. <th class="sorting" data-sort="work_type"> 工作类型:上班,自由职业者 </th>
  48. <th class="sorting" data-sort="address"> 详细地址 </th>
  49. <th class="sorting" data-sort="address_time"> 居住时长 </th>
  50. <th class="sorting" data-sort="idcard"> 身份证号 </th>
  51. <th class="sorting" data-sort="idcard_positive"> 身份证正面 </th>
  52. <th class="sorting" data-sort="idcard_back"> 身份证背面 </th>
  53. <th class="sorting" data-sort="educational"> 学历 </th>
  54. <th class="sorting" data-sort="marital"> 婚姻状况 </th>
  55. <th class="sorting" data-sort="last_login_time"> 最后一次登录时间 </th>
  56. <th class="sorting" data-sort="contact_bind"> 直系亲属联系人关系 </th>
  57. <th class="sorting" data-sort="contact_name"> 直系亲属联系人姓名 </th>
  58. <th class="sorting" data-sort="contact_mobile"> 直系亲属联系人手机 </th>
  59. <th class="sorting" data-sort="other_contact_bind"> 其他联系人关系 </th>
  60. <th class="sorting" data-sort="other_contact_name"> 直系亲属联系人姓名 </th>
  61. <th class="sorting" data-sort="other_contact_mobile"> 直系亲属联系人手机 </th>
  62. <th class="sorting" data-sort="created_at"> 创建时间 </th>
  63. <th class="sorting" data-sort="updated_at"> 更新时间 </th>
  64. <th width="22%">相关操作</th>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. @if(isset($list))
  69. @foreach($list as $key => $item)
  70. <tr>
  71. <td><input data-json='{!! json_encode($item) !!}' name="btSelectItem" class="data_key" type="checkbox" value="{{ $item->id or 0 }}" /></td>
  72. <td>{{ $item->id }}</td>
  73. <td>{{ $item->username }}</td>
  74. <td>{{ $item->real_name }}</td>
  75. <td>{{ $item->password }}</td>
  76. <td>{{ $item->email }}</td>
  77. <td>{{ $item->mobile }}</td>
  78. <td>{{ $item->avatar }}</td>
  79. <td>{{ $item->gender }}</td>
  80. <td>{{ $item->province }}</td>
  81. <td>{{ $item->city }}</td>
  82. <td>{{ $item->county }}</td>
  83. <td>{{ dict()->get('user_info','work_type',$item->work_type) }}</td>
  84. <td>{{ $item->address }}</td>
  85. <td>{{ dict()->get('user_info','address_time',$item->address_time) }}</td>
  86. <td>{{ $item->idcard }}</td>
  87. <td>{{ $item->idcard_positive }}</td>
  88. <td>{{ $item->idcard_back }}</td>
  89. <td>{{ $item->educational }}</td>
  90. <td>{{ dict()->get('user_info','marital',$item->marital) }}</td>
  91. <td>{{ $item->last_login_time }}</td>
  92. <td>{{ dict()->get('user_info','contact_bind',$item->contact_bind) }}</td>
  93. <td>{{ $item->contact_name }}</td>
  94. <td>{{ $item->contact_mobile }}</td>
  95. <td>{{ dict()->get('user_info','other_contact_bind',$item->other_contact_bind) }}</td>
  96. <td>{{ $item->other_contact_name }}</td>
  97. <td>{{ $item->other_contact_mobile }}</td>
  98. <td>{{ $item->created_at }}</td>
  99. <td>{{ $item->updated_at }}</td>
  100. <td>
  101. @if(role('User/Info/view'))
  102. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('User/Info/view',['id'=>$item->id])}}'});" class="btn btn-primary ">查看</button>
  103. @endif
  104. </td>
  105. </tr>
  106. @endforeach
  107. @endif
  108. </tbody>
  109. </table>
  110. <div class="row">
  111. <div class="col-sm-6">
  112. <div class="dataTables_info" id="DataTables_Table_0_info"
  113. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。</div>
  114. </div>
  115. <div class="col-sm-6">
  116. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  117. {!! $list->setPath('')->appends(Request::all())->render() !!}
  118. </div>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. </div>
  125. </div>
  126. @include('admin.tools.check_script');
  127. @endsection