horse_race_lamp.blade.php 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. {{ __('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. <table class="table table-bordered">
  26. <thead>
  27. <tr>
  28. <th width="5%">{{ __('auto.对应游戏') }}</th>
  29. <th width="5%">{{ __('auto.超过金额播报') }}</th>
  30. <th width="8%">{{ __('auto.控制金额修改') }}</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @foreach($list as $val)
  35. <tr>
  36. <td>{{$val->KindName}}</td>
  37. <td>{{$val->Gap}}</td>
  38. <td>
  39. <button class="btn btn-sm btn-gradient-dark"
  40. onclick="update({{$val->KindID}})">
  41. {{ __('auto.修改') }}
  42. </button>
  43. </td>
  44. </tr>
  45. @endforeach
  46. </tbody>
  47. </table>
  48. {{-- <div class="box-footer clearfix" id="pages">--}}
  49. {{-- {{ __('auto.总共') }} <b>{{ $list->appends([--}}
  50. {{-- 'list'=>$list,--}}
  51. {{--])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}--}}
  52. {{-- {!! $list->links() !!}--}}
  53. {{-- </div>--}}
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. <script>
  61. // 修改
  62. function update(id) {
  63. layer.open({
  64. type: 2,
  65. title: '{{ __('auto.修改') }}',
  66. shadeClose: true,
  67. shade: 0.8,
  68. area: ['50%', '60%'],
  69. content: '/admin/notice/horse_race_lamp_update/' + id
  70. });
  71. }
  72. function switch_control(id, ChannelIndex, AndroidVersion, type) {
  73. myConfirm("{{ __('auto.操作不可逆,是否继续') }}?", function () {
  74. myRequest("/admin/channel/switch/" + id, "post", {ChannelIndex, AndroidVersion, type}, function (res) {
  75. layer.msg(res.msg)
  76. setTimeout(function () {
  77. window.location.reload();
  78. }, 2000)
  79. });
  80. });
  81. }
  82. </script>
  83. @endsection