index.blade.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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/Banks/create'))
  27. <div class="col-sm-3 pull-right">
  28. <a href="{{ U('User/Banks/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">
  33. <thead>
  34. <tr>
  35. <th class="sorting" data-sort="id">id </th>
  36. <th class="sorting" data-sort="user_id"> 用户名</th>
  37. <th class="sorting" data-sort="bank_name"> 银行名称 </th>
  38. <th class="sorting" data-sort="bank_number"> 卡号 </th>
  39. <th class="sorting" data-sort="bank_phone"> 银行卡手机号 </th>
  40. <th class="sorting" data-sort="bank_user"> 银行卡用户姓名 </th>
  41. <th class="sorting" data-sort="qrcode"> 二维码 </th>
  42. <th class="sorting" data-sort="type"> 二维码类型 </th>
  43. <th class="updated_at" data-sort="type"> 添加时间 </th>
  44. <th width="22%">相关操作</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. @if(isset($list))
  49. @foreach($list as $key => $item) <tr>
  50. <td>{{ $item->id }}</td>
  51. <td>{{ !empty($item->user) ? $item->user->nickname : '' }}</td>
  52. <td>{{ $item->bank_name }}</td>
  53. <td>{{ $item->bank_number }}</td>
  54. <td>{{ $item->bank_phone }}</td>
  55. <td>{{ $item->bank_user }}</td>
  56. <td>
  57. @if(!empty($item->qrcode))
  58. <img src="{{$item->qrcode}}" width="20px" alt="">
  59. @endif
  60. </td>
  61. <td>{{ $item->type }}</td>
  62. <td>{{ $item->updated_at }}</td>
  63. <td>
  64. <div class="btn-group">
  65. <button data-toggle="dropdown"
  66. class="btn btn-warning btn-sm dropdown-toggle"
  67. aria-expanded="false">
  68. 操作 <span class="caret"></span>
  69. </button>
  70. <ul class="dropdown-menu">
  71. @if(role('User/Banks/update'))
  72. <li><a href="{{ U('User/Banks/update',['id'=>$item->id])}}" class="font-bold">修改</a></li>
  73. @endif
  74. @if(role('User/Banks/destroy'))
  75. <li class="divider"></li>
  76. <li><a href="{{ U('User/Banks/destroy',['id'=>$item->id])}}" onclick="return confirm('你确定执行删除操作?');">删除</a></li>
  77. @endif
  78. </ul>
  79. </div>
  80. {{-- @if(role('User/Banks/view'))
  81. <button onclick="layer.open({type: 2,area: ['80%', '90%'],content: '{{ U('User/Banks/view',['id'=>$item->id])}}'});" class="btn btn-primary ">查看</button>
  82. @endif--}}
  83. </td>
  84. </tr>
  85. @endforeach
  86. @endif
  87. </tbody>
  88. </table>
  89. <div class="row">
  90. <div class="col-sm-6">
  91. <div class="dataTables_info" id="DataTables_Table_0_info"
  92. role="alert" aria-live="polite" aria-relevant="all">每页{{ $list->count() }}条,共{{ $list->lastPage() }}页,总{{ $list->total() }}条。</div>
  93. </div>
  94. <div class="col-sm-6">
  95. <div class="dataTables_paginate paging_simple_numbers" id="DataTables_Table_0_paginate">
  96. {!! $list->setPath('')->appends(Request::all())->render() !!}
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. @endsection