list.blade.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', '银行卡列表')
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">银行卡列表</a></li>
  7. </ul>
  8. </div>
  9. <div class='panel panel-default'>
  10. <form action="" method="post" class="form-horizontal" id="form1">
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <div class="form-group col-xs-12 col-sm-3">
  14. <input class="form-control" name="search[member_id]" type="text"
  15. value="{{$search['member_id']}}" placeholder="请输入会员ID">
  16. </div>
  17. <div class="form-group col-xs-12 col-sm-3">
  18. <input class="form-control" name="search[member]" type="text"
  19. value="{{$search['member']}}" placeholder="请输入会员昵称/姓名/手机号">
  20. </div>
  21. <div class="form-group col-xs-12 col-sm-3">
  22. <input class="form-control" name="search[card_no]" type="text"
  23. value="{{$search['card_no']}}" placeholder="卡号">
  24. </div>
  25. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  26. <div class="">
  27. <select name="search[bank_type]" class="form-control">
  28. <option value="">卡类型</option>
  29. <option value="0" @if (isset($search['bank_type']) && $search['bank_type'] == 0) selected @endif >储蓄卡</option>
  30. <option value="1" @if ($search['bank_type'] == 1) selected @endif>信用卡</option>
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  35. <div class="">
  36. <select name="search[status]" class="form-control">
  37. <option value="">绑定状态</option>
  38. <option value="0" @if (isset($search['status']) && $search['status'] == 0) selected @endif >未绑定</option>
  39. <option value="1" @if ($search['status'] == 1) selected @endif>已绑定</option>
  40. <option value="-1" @if ($search['status'] == -1) selected @endif>绑定失败</option>
  41. </select>
  42. </div>
  43. </div>
  44. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  45. <div class="">
  46. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  47. {{--<button type="button" id="export" class="btn btn-info">导出 Excel</button>--}}
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. <div class='panel panel-default'>
  55. <div class='panel panel-heading'>
  56. <!-- <a class="btn btn-info" style="color: white" href="#"></a> -->
  57. <span>总数:{{$list->total()}}</span>
  58. </div>
  59. <div class='panel panel-body'>
  60. <table class="table table-hover" style="overflow:visible;">
  61. <thead>
  62. <tr>
  63. <th style='width:3%;text-align: center;'>ID</th>
  64. <th style='width:3%;text-align: center;'>会员</th>
  65. <th style='width:6%;text-align: center;'>姓名 <br/> 手机号</th>
  66. <th style='width:8%;text-align: center;'>证件类型 <br/> 证件号</th>
  67. <th style='width:4%;text-align: center;'>所属银行</th>
  68. <th style='width:4%;text-align: center;'>卡类型</th>
  69. <th style='width:8%;text-align: center;'>卡号</th>
  70. <th style='width:8%;text-align: center;'>状态</th>
  71. {{--<th style='width:3%;text-align: center;'>操作</th>--}}
  72. </tr>
  73. </thead>
  74. <tbody>
  75. @foreach($list as $row)
  76. <tr>
  77. <td style="text-align: center;">{{$row->id}}</td>
  78. <td style="text-align: center;">
  79. <img src='{{$row->hasOneMember->avatar}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  80. <br/>
  81. <a href="{!! yzWebUrl('member.member.detail',['id' => $row->hasOneMember->uid])!!}">@if ($row->hasOneMember->nickname) {{$row->hasOneMember->nickname}} @else {{$row->hasOneMember->mobile}} @endif</a>
  82. </td>
  83. <td style="text-align: center;">{{$row->payer_name}} <br/>{{$row->payer_phone}} </td>
  84. <td style="text-align: center;">{{$row->id_type_name}} <br/>{{$row->id_no}}</td>
  85. <td style="text-align: center;">{{$row->bank_name}}</td>
  86. <td style="text-align: center;">{{$row->bank_type_name}}</td>
  87. <td style="text-align: center;">{{$row->card_no}}</td>
  88. <td style="white-space: normal;word-break:break-all">{{$row->status_name}}</td>
  89. </tr>
  90. @endforeach
  91. </tbody>
  92. </table>
  93. {!! $pager !!}
  94. </div>
  95. </div>
  96. <script language="javascript">
  97. $(function () {
  98. $('#export').click(function () {
  99. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.card-quick-pay.export') !!}');
  100. $('#form1').submit();
  101. });
  102. $('#search').click(function () {
  103. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.card-quick-pay.index') !!}');
  104. $('#form1').submit();
  105. });
  106. });
  107. </script>
  108. @endsection