2
0

index.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. @extends('base.base')
  2. @section('base')
  3. <!-- 内容区域 -->
  4. <style type="text/css">
  5. .table th {
  6. padding: 0.8375rem;
  7. vertical-align: top;
  8. border-top: 1px solid #ebedf2;
  9. }
  10. </style>
  11. <div class="main-panel">
  12. <div class="content-wrapper">
  13. <div class="page-header">
  14. <h3 class="page-title">
  15. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  16. <i class="mdi mdi-settings"></i>
  17. </span>
  18. {{ __('auto.全局报表') }}
  19. </h3>
  20. <nav aria-label="breadcrumb">
  21. <ol class="breadcrumb">
  22. <li class="breadcrumb-item"><a href="#">{{ __('auto.全局报表') }}</a></li>
  23. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.全局报表') }}</li>
  24. </ol>
  25. </nav>
  26. </div>
  27. <div class="row">
  28. <div class="col-lg-12 grid-margin stretch-card">
  29. <div class="card">
  30. <div class="card-body">
  31. <h4 class="card-title">{{ __('auto.全局报表') }}</h4>
  32. <table class="table table-bordered">
  33. <thead>
  34. <tr>
  35. <th width="6%">{{ __('auto.休眠用户:') }}{{ $accounts['dormancyUser'] }}</th>
  36. <th width="6%">{{ __('auto.流失用户:') }}{{ $accounts['lsUser'] }}</th>
  37. <th width="6%">{{ __('auto.总注册用户:') }}{{ $accounts['register'] }}</th>
  38. <th width="6%">{{ __('auto.总付费用户:') }}{{ $accounts['payUserCount'] }}</th>
  39. <th width="6%">{{ __('auto.总充值金额:') }}{{ $accounts['paySum'] }}</th>
  40. <th width="6%">{{ __('auto.累计茶叶金额:') }}{{ $accounts['withdraw'] }}</th>
  41. <th width="6%">{{ __('auto.累计茶叶回收金额:') }}{{ $accounts['withDrawRecovery'] }}</th>
  42. </tr>
  43. <tr>
  44. <th width="6%">{{ __('auto.赠送总金豆:') }}{{ $games['gameInfo']->Handsel ??0 }}</th>
  45. <th width="6%">{{ __('auto.签到总奖励:') }}{{ $accounts['totalSignIn'] }}</th>
  46. <th width="6%">{{ __('auto.总流水:') }}{{ $games['gameInfo']->flowing_water ??0 }}</th>
  47. <th width="6%">N{{ __('auto.总流水:') }}{{ $games['gameInfo']->flowing_water_new ??0 }}</th>
  48. <th width="6%">{{ __('auto.平台总输赢:') }}{{ $games['gameInfo']->Score ?? 0 }}</th>
  49. </tr>
  50. </thead>
  51. </table>
  52. <h4 class="card-title">{{ __('auto.库存报表') }}</h4>
  53. <table class="table table-bordered">
  54. <thead>
  55. <tr>
  56. <th width="6%">{{ __('auto.房间总库存:') }}{{ $games['roomStock'] }}</th>
  57. </tr>
  58. </thead>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col-lg-12 grid-margin stretch-card">
  66. <div class="card">
  67. <div class="card-body">
  68. <form class="well form-inline margin-top-20" method="post" action='/admin/global/report'>
  69. @csrf
  70. <spen style="padding-left: 10px">{{ __('auto.选择时间:') }}</spen>
  71. <input type="datetime-local" step="01" name="start_time" class="form-control"
  72. value="{{$start_time}}"/>&nbsp;&nbsp;
  73. <input type="datetime-local" step="01" name="end_time" class="form-control"
  74. value="{{$end_time}}"/>&nbsp;&nbsp;
  75. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.查询') }}"/>&nbsp;&nbsp;
  76. <a href="/admin/global/report"
  77. class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  78. <select class="form-control" name="date" style="color: black">
  79. <option value="">{{ __('auto.选择时间') }}</option>
  80. <option value="1">{{ __('auto.今日') }}</option>
  81. <option value="2">{{ __('auto.昨日') }}</option>
  82. <option value="3">{{ __('auto.本周') }}</option>
  83. <option value="4">{{ __('auto.本月') }}</option>
  84. </select>
  85. </form>
  86. <table class="table table-bordered" style="margin-top: 10px;">
  87. <tr>
  88. <td >
  89. {{ __('auto.注册用户:') }}{{$dayAccountInfo->RegPeple ?? 0}}
  90. </td>
  91. <td >
  92. {{ __('auto.活跃用户:') }}{{ $dayAccountInfo->ActivePeple ?? 0 }}
  93. </td>
  94. <td >
  95. {{ __('auto.充值用户:') }}{{ $dayAccountInfo->PayPeple ?? 0 }}
  96. </td>
  97. <td >
  98. {{ __('auto.累计充值:') }}{{ $dayAccountInfo->PayTotal / 100 ?? 0 }}<br>
  99. </td>
  100. <td>
  101. {{ __('auto.累计茶叶:') }}{{ $dayAccountInfo->DrawTotal / 100 ?? 0 }}<br>
  102. </td>
  103. </tr>
  104. </table>
  105. <br>
  106. <div style="width: 80%;float: left;">
  107. <table class="table table-bordered" style="float: left;">
  108. <tr>
  109. <td>{{ __('auto.游戏房间') }}</td>
  110. <td>{{ __('auto.免费流水') }}</td>
  111. <td>{{ __('auto.免费返奖率') }}</td>
  112. <td>{{ __('auto.免费游戏人数') }}</td>
  113. <td style="background-color: #f5f5f5">付费{{ __('auto.流水') }}</td>
  114. <td style="background-color: #f5f5f5">付费{{ __('auto.返奖率') }}</td>
  115. <td style="background-color: #f5f5f5">付费{{ __('auto.返奖率') }}(历史)</td>
  116. <td style="background-color: #f5f5f5">付费{{ __('auto.游戏人数') }}</td>
  117. </tr>
  118. <tr>
  119. <td>{{ __('auto.总计') }}</td>
  120. <td>{{$games['gameRoomInfo']->free_flowing_water?? 0}}</td>
  121. <td>{{number_format((($games['gameRoomInfo']->free_flowing_water?? 0)-($games['gameRoomInfo']->free_win_lose ?? 0))/max(1,$games['gameRoomInfo']->free_flowing_water?? 0)*100,1)}}%</td>
  122. <td>{{$games['totalGameCount']-$games['pay_totalGameCount']}}</td>
  123. <td style="background-color: #f5f5f5">{{$games['gameRoomInfo']->pay_flowing_water_new?? 0}}</td>
  124. <td style="background-color: #f5f5f5">{{number_format((($games['gameRoomInfo']->pay_flowing_water_new?? 0)-($games['gameRoomInfo']->pay_win_lose ?? 0))/max(1,$games['gameRoomInfo']->pay_flowing_water_new?? 0)*100,1)}}%</td>
  125. <td style="background-color: #f5f5f5">{{$games['gameRoomInfo']->Rtp?? 0}}%</td>
  126. <td style="background-color: #f5f5f5">{{$games['pay_totalGameCount']}}</td>
  127. </tr>
  128. @foreach($games['gameList'] as $k=>$v)
  129. <tr>
  130. <td>{{$v->ServerName}}</td>
  131. <td>{{$v->free_flowing_water}}</td>
  132. <td>{{number_format(($v->free_flowing_water-$v->free_win_lose)/max(1,$v->free_flowing_water)*100,1)}}%</td>
  133. <td>{{$v->Cnt-$v->pay_Cnt}}</td>
  134. <td style="background-color: #f5f5f5">{{$v->pay_flowing_water_new}}</td>
  135. <td style="background-color: #f5f5f5">{{number_format(($v->pay_flowing_water_new-$v->pay_win_lose)/max(1,$v->pay_flowing_water_new)*100,1)}}%</td>
  136. <td style="background-color: #f5f5f5">{{$v->Rtp}}%</td>
  137. <td style="background-color: #f5f5f5">{{$v->pay_Cnt}}</td>
  138. </tr>
  139. @endforeach
  140. </table>
  141. </div>
  142. <table class="table table-bordered" style="margin-left:25px;width: 18%;float: left">
  143. <tr>
  144. <th colspan="2"> {{ __('auto.赠送彩金:') }}{{$winnings['winningsSum']}}</th>
  145. </tr>
  146. <tr>
  147. <td>{{ __('auto.活动名称') }}</td>
  148. <td>{{ __('auto.金额') }}</td>
  149. </tr>
  150. <tr>
  151. <td>{{ __('auto.充值送金') }}</td>
  152. <td>{{$winnings['winnings']['45'] ?? 0}}</td>
  153. </tr>
  154. <tr>
  155. <td>{{ __('auto.注册送金') }}</td>
  156. <td>{{$winnings['winnings']['33'] ?? 0}}</td>
  157. </tr>
  158. <tr>
  159. <td>{{ __('auto.每日签到') }}</td>
  160. <td>{{ $winnings['winnings']['signIn'] ?? 0 }}</td>
  161. </tr>
  162. <tr>
  163. <td>{{ __('auto.绑定手机赠送') }}</td>
  164. <td>{{ $winnings['winnings']['21'] ?? 0 }}</td>
  165. </tr>
  166. </table>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. </div>
  172. @endsection