user_list.blade.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. <form class="well form-inline margin-top-20" method="get" action='/admin/gold/user'>
  33. <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
  34. <input type="date" step="01" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
  35. <input type="date" step="01" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
  36. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  37. <a href="/admin/gold/user" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  38. <a href="/admin/gold/user?excel=1&start_time={{$start_time}}&end_time={{$end_time}}" class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  39. </form>
  40. <table class="table table-bordered">
  41. <thead>
  42. <tr>
  43. <th width="6%">{{ __('auto.时间') }}</th>
  44. <th width="4%">{{ __('auto.星期') }}</th>
  45. <th width="6%">{{ __('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.新增3日留存') }}</th>
  53. <th width="6%">{{ __('auto.新增7日留存') }}</th>
  54. <th width="6%">{{ __('auto.新增30日留存') }}</th>
  55. <th width="6%">{{ __('auto.活跃次日留存') }}</th>
  56. <th width="6%">{{ __('auto.活跃3日留存') }}</th>
  57. <th width="6%">{{ __('auto.活跃7日留存') }}</th>
  58. <th width="6%">{{ __('auto.活跃30日留存') }}</th>
  59. </tr>
  60. </thead>
  61. <tbody>
  62. @foreach($list as $k=>$v)
  63. <tr>
  64. <td>{{ $v->InsertDate }}</td>
  65. <td>{{ $v->week }}</td>
  66. <td>{{ $v->LoginCount }}</td>
  67. <td>{{ $v->RegisterCount }}</td>
  68. <td>{{ $v->maxOnline }}</td>
  69. <td>{{ $v->SleepUserCount}}</td>
  70. <td></td>
  71. <td>{{ $v->WakeupUserCount}}</td>
  72. <td>0{{ $v->Retention1}}</td>
  73. <td>0{{ $v->Retention3}}</td>
  74. <td>0{{ $v->Retention7}}</td>
  75. <td>0{{ $v->Retention30}}</td>
  76. <td>0{{ $v->ARetention1}}</td>
  77. <td>0{{ $v->ARetention3}}</td>
  78. <td>0{{ $v->ARetention7}}</td>
  79. <td>0{{ $v->ARetention30}}</td>
  80. </tr>
  81. @endforeach
  82. </tbody>
  83. </table>
  84. <div class="box-footer clearfix">
  85. {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  86. {!! $list->links() !!}
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. <script>
  95. $(function(){
  96. cutStr(50);
  97. });
  98. function update(id){
  99. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
  100. myRequest("/admin/accusation/edit/"+id,"post",{},function(res){
  101. layer.msg(res.msg)
  102. setTimeout(function(){
  103. window.location.reload();
  104. },1500)
  105. });
  106. });
  107. }
  108. function del(id){
  109. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  110. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  111. layer.msg(res.msg)
  112. setTimeout(function(){
  113. window.location.reload();
  114. },1500)
  115. });
  116. });
  117. }
  118. </script>
  119. @endsection