room.blade.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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="6%">{{ __('auto.游戏在线人数:') }}{{$line}}</th>
  29. <th width="6%">{{ __('auto.大厅在线人数:暂无统计') }}</th>
  30. </tr>
  31. </thead>
  32. </table>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="row">
  38. <div class="col-lg-12 grid-margin stretch-card">
  39. <div class="card">
  40. <div class="card-body">
  41. <table class="table table-bordered">
  42. <thead>
  43. <tr>
  44. <th width="10%">{{ __('auto.游戏房间名称') }}</th>
  45. <th width="4%">{{ __('auto.状态') }}</th>
  46. <th width="6%">{{ __('auto.当前房间人数') }}</th>
  47. <th width="6%">{{ __('auto.当天房间流水') }}</th>
  48. <th width="6%">{{ __('auto.当天房间输赢') }}</th>
  49. <th width="6%">{{ __('auto.当天房间税收') }}</th>
  50. <th width="6%">{{ __('auto.当天房间胜率') }}</th>
  51. <th width="6%">{{ __('auto.当天输赢人数') }}</th>
  52. <th width="6%">{{ __('auto.房间库存') }}</th>
  53. <th width="8%">{{ __('auto.设置') }}</th>
  54. </tr>
  55. </thead>
  56. <tbody>
  57. @foreach($list as $k=>$v)
  58. <tr>
  59. <td>{{$v->ServerName}}</td>
  60. <td>
  61. @if ($v->Nullity == 1)
  62. {{ __('auto.关闭') }}
  63. @else
  64. {{ __('auto.开启') }}
  65. @endif
  66. </td>
  67. <td>{{$v->game_count}}</td>
  68. <td>{{$v->flowing_water}}</td>
  69. <td>
  70. @if ($v->win_lose < 0)
  71. <span style="color: red">{{ __('auto.系统输') }}</span>
  72. @elseif ($v->win_lose > 0)
  73. <span style="color: #0b2e13">{{ __('auto.系统赢') }}</span>
  74. @endif
  75. {{$v->win_lose}}
  76. </td>
  77. <td>{{$v->Revenue}}</td>
  78. <td>{{$v->winning_probability . '%'}}</td>
  79. <td>{{ __('auto.输') }}{{$v->LostUserCount}} / {{ __('auto.赢') }}{{$v->WinUserCount}}</td>
  80. <td>{{$v->stock}}</td>
  81. <td>
  82. {{-- @if ($role_id == 1)--}}
  83. @if ($v->Nullity == 1)
  84. <button type="button" class="btn btn-sm btn-success btn-icon-text" onclick="update({{$v->ServerID}},'on')">
  85. {{ __('auto.开启') }}
  86. </button>
  87. @else
  88. <button type="button" class="btn btn-sm btn-danger btn-icon-text" onclick="update({{$v->ServerID,'close'}})">
  89. {{ __('auto.关闭') }}
  90. </button>
  91. @endif
  92. {{-- @endif--}}
  93. <button type="button" class="btn btn-sm btn-facebook btn-icon-text" onclick="show({{$v->ServerID}})">
  94. {{ __('auto.查配置') }}
  95. </button>
  96. </td>
  97. </tr>
  98. @endforeach
  99. </tbody>
  100. </table>
  101. @empty($list)
  102. <td>{{ __('auto.暂无数据') }}</td>
  103. @endempty
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. <script>
  111. function del(id){
  112. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  113. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  114. layer.msg(res.msg)
  115. setTimeout(function(){
  116. window.location.reload();
  117. },1500)
  118. });
  119. });
  120. }
  121. function update(server_id,type) {
  122. myConfirm("{{ __('auto.是否继续') }}?",function(){
  123. myRequest("/admin/global/update","post",{server_id:server_id,type:type},function(res){
  124. layer.msg(res.msg)
  125. window.location.reload();
  126. });
  127. });
  128. }
  129. function show(value) {
  130. var page = layer.open({
  131. type: 2,
  132. title: '{{ __('auto.查看配置') }}',
  133. shadeClose: true,
  134. shade: 0.8,
  135. area: ['50%', '60%'],
  136. content: '/admin/global/show_config/'+value
  137. });
  138. }
  139. </script>
  140. @endsection