ip_white.blade.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <div class="main-panel">
  5. <div class="content-wrapper">
  6. <div class="page-header">
  7. <h3 class="page-title">
  8. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  9. <i class="mdi mdi-settings"></i>
  10. </span>
  11. IP{{ __('auto.回调白名单') }}
  12. </h3>
  13. <nav aria-label="breadcrumb">
  14. <ol class="breadcrumb">
  15. <li class="breadcrumb-item"><a href="#">{{ __('auto.充值管理') }}</a></li>
  16. <li class="breadcrumb-item active" aria-current="page">IP{{ __('auto.回调白名单') }}</li>
  17. </ol>
  18. </nav>
  19. </div>
  20. <div class="row">
  21. <div class="col-lg-12 grid-margin stretch-card">
  22. <div class="card">
  23. <div class="card-body">
  24. <h4 class="card-title">IP{{ __('auto.回调白名单') }}</h4>
  25. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th width="8%">{{ __('auto.三方名称') }}</th>
  29. <th width="8%">{{ __('auto.图片') }}</th>
  30. <th width="5%">IP{{ __('auto.白名单') }}</th>
  31. <th width="8%">{{ __('auto.修改时间') }}</th>
  32. <th width="8%">{{ __('auto.上次修改者') }}</th>
  33. <th width="8%">{{ __('auto.备注') }}</th>
  34. <th width="8%">{{ __('auto.操作') }}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. @foreach($list as $k=>$v)
  39. <tr>
  40. {{-- <td contentEditable="true"--}}
  41. {{-- onblur="update_sort(this,{{$v->id}})"> {{$v->sort}} </td>--}}
  42. <td>{{$v->name}}</td>
  43. <td><img src="{{ $v->config_value }}" alt="" width="80px"></td>
  44. <td>{{ $v->ip }}</td>
  45. <td>{{$v->last_time}}</td>
  46. <td>{{$v->account}}</td>
  47. <td contenteditable="true" onblur="remarksFunc({{$v->id}})">
  48. {{$v->remarks}}
  49. </td>
  50. <td>
  51. <button class="btn btn-sm btn-gradient-dark" onclick="update({{$v->id}})">{{ __('auto.修改') }}</button>
  52. </td>
  53. </tr>
  54. @endforeach
  55. </tbody>
  56. </table>
  57. <div class="box-footer clearfix">
  58. {{ __('auto.总共') }}
  59. <b>{{ $list->appends([
  60. ])->total() }}</b>
  61. {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  62. {!! $list->links() !!}
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. <script>
  71. function update(id) {
  72. var page = layer.open({
  73. type: 2,
  74. title: '{{ __('auto.修改') }}',
  75. shadeClose: true,
  76. shade: 0.8,
  77. offset:'auto',
  78. fixed: false,
  79. area: ['50%', '40%'],
  80. content: '/admin/recharge/ip_white_update/' + id
  81. });
  82. }
  83. function remarks(obj, id) {
  84. remark = $(obj).html();
  85. myRequest("/admin/recharge/remarks/" + id, "post", {remark}, function (res) {
  86. layer.msg(res.msg)
  87. setTimeout(function () {
  88. window.location.reload();
  89. }, 2000)
  90. });
  91. }
  92. function switch_control(id,type){
  93. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?",function(){
  94. myRequest("/admin/recharge/switch/"+id,"post",{type},function(res){
  95. layer.msg(res.msg)
  96. setTimeout(function(){
  97. window.location.reload();
  98. },1500)
  99. });
  100. });
  101. }
  102. function update_sort(obj,id) {
  103. sort = $(obj).html();
  104. if(sort != ''){
  105. myRequest("/admin/recharge/update_sort/" + id, "post", {sort}, function (res) {
  106. layer.msg(res.msg)
  107. setTimeout(function () {
  108. window.location.reload();
  109. }, 1500)
  110. });
  111. }else {
  112. window.location.reload();
  113. }
  114. }
  115. </script>
  116. @endsection