exempt_review.blade.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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-wrench"></i>
  10. </span>
  11. {{ __('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">{{ __('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">{{ __('auto.茶叶人工免审开关') }}</h4>
  25. {{-- <p class="card-description">--}}
  26. {{-- <button type="button" class="btn btn-sm btn-gradient-success btn-icon-text"--}}
  27. {{-- onclick="add()">--}}
  28. {{-- <i class="mdi mdi-plus btn-icon-prepend"></i>--}}
  29. {{-- {{ __('auto.茶叶审核档位添加') }}--}}
  30. {{-- </button>--}}
  31. {{-- </p>--}}
  32. <table class="table table-bordered">
  33. <thead>
  34. <tr>
  35. <th>{{ __('auto.菜单名称') }}</th>
  36. <th>{{ __('auto.代付方') }}</th>
  37. <th>{{ __('auto.累计咖啡额度范围设置') }}</th>
  38. <th>{{ __('auto.单个玩家可免审核茶叶额度') }}</th>
  39. <th>{{ __('auto.每日日累计消耗申请额度') }} / {{ __('auto.每日申请总额度') }}</th>
  40. <th>{{ __('auto.操作') }}</th>
  41. <th>{{ __('auto.开关状态') }}</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach($list as $val)
  46. <tr>
  47. <td>{{ $val->name }}</td>
  48. <td>{{ $val->agent_name }}</td>
  49. <td>{{$val->recharge_min}} - {{$val->recharge_max}}</td>
  50. <td>
  51. @if ($val->type == 1)
  52. {{$val->quota}}
  53. @elseif($val->type == 2)
  54. {{$val->quota}} {{ __('auto.倍') }}
  55. @endif
  56. </td>
  57. <td>{{$val->useQuota}} / {{ $val->total_quota }}</td>
  58. <td>
  59. <button type="button" class="btn btn-sm btn-gradient-dark btn-icon-text"
  60. onclick="update({{ $val->id }})">
  61. {{ __('auto.修改') }}
  62. <i class="mdi mdi-file-check btn-icon-append"></i>
  63. </button>
  64. </td>
  65. <td>
  66. @if ($val->status == 1)
  67. {{ __('auto.开启中') }}
  68. <button class="btn btn-sm btn-gradient-danger"
  69. onclick="block({{$val->id}},2)">{{ __('auto.关闭') }}
  70. </button>
  71. @else
  72. {{ __('auto.关闭中') }}
  73. <button class="btn btn-sm btn-gradient-success"
  74. onclick="block({{$val->id}},1)">{{ __('auto.开启') }}
  75. </button>
  76. @endif
  77. </td>
  78. </tr>
  79. @endforeach
  80. </tbody>
  81. </table>
  82. <div class="box-footer clearfix" id="pages">
  83. {{ __('auto.总共') }} <b>{{ $list->appends([
  84. ])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  85. {!! $list->links() !!}
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <script>
  94. function add() {
  95. layer.open({
  96. type: 2,
  97. title: '{{ __('auto.添加免审配置') }}',
  98. shadeClose: true,
  99. shade: 0.8,
  100. area: ['60%', '80%'],
  101. content: '/admin/withdrawal/exempt_review_add'
  102. });
  103. }
  104. function update(id) {
  105. var page = layer.open({
  106. type: 2,
  107. title: '{{ __('auto.修改免审配置') }}',
  108. shadeClose: true,
  109. shade: 0.8,
  110. area: ['70%', '90%'],
  111. content: '/admin/withdrawal/exempt_review_update/' + id
  112. });
  113. }
  114. function block(id,status) {
  115. myConfirm("{{ __('auto.是否继续') }}?", function () {
  116. myRequest("/admin/withdrawal/block/" + id, "post", {status}, function (res) {
  117. layer.msg(res.msg)
  118. setTimeout(function () {
  119. window.location.reload();
  120. }, 1500)
  121. });
  122. });
  123. }
  124. </script>
  125. @endsection