statistics.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @extends('base.base')
  2. @section('base')
  3. <div class="main-panel">
  4. <div class="content-wrapper">
  5. <div class="page-header">
  6. <h3 class="page-title">
  7. <span class="page-title-icon bg-gradient-primary text-white mr-2">
  8. <i class="mdi mdi-timer"></i>
  9. </span>
  10. {{ __('auto.进游戏时长统计') }}
  11. </h3>
  12. <nav aria-label="breadcrumb">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="#">{{ __('auto.游戏数据') }}</a></li>
  15. <li class="breadcrumb-item active" aria-current="page">{{ __('auto.进游戏时长统计') }}</li>
  16. </ol>
  17. </nav>
  18. </div>
  19. <div class="row">
  20. <div class="col-lg-12 grid-margin stretch-card">
  21. <div class="card">
  22. <div class="card-body">
  23. <h4 class="card-title">{{ __('auto.各游戏进游戏平均时长') }}</h4>
  24. <p class="text-muted small">{{ __('auto.进游戏时长统计说明') }}</p>
  25. <form class="well form-inline margin-top-20" method="get" action="">
  26. <span style="padding-left: 10px">{{ __('auto.日期') }}:</span>
  27. <input type="date" name="start_date" class="form-control" value="{{ $start_date }}" />
  28. <span style="padding-left: 10px">{{ __('auto.至') }}</span>
  29. <input type="date" name="end_date" class="form-control" value="{{ $end_date }}" />
  30. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  31. <a href="/admin/game_enter_log/statistics" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>
  32. </form>
  33. <br>
  34. <table class="table table-bordered">
  35. <thead>
  36. <tr>
  37. <th width="35%">{{ __('auto.游戏') }}</th>
  38. <th width="15%">{{ __('auto.上报次数') }}</th>
  39. <th width="25%">{{ __('auto.平均耗时(秒)') }}</th>
  40. <th width="25%">{{ __('auto.平均耗时(毫秒)') }}</th>
  41. </tr>
  42. </thead>
  43. <tbody>
  44. @foreach($statistics as $stat)
  45. <tr>
  46. <td>{{ $stat['game_name'] }} <small class="text-muted">(ID: {{ $stat['game_id'] }})</small></td>
  47. <td>{{ $stat['enter_count'] }}</td>
  48. <td>{{ $stat['avg_duration_sec'] }}</td>
  49. <td>{{ $stat['avg_duration_ms'] }}</td>
  50. </tr>
  51. @endforeach
  52. </tbody>
  53. </table>
  54. @if(count($statistics) == 0)
  55. <div class="alert alert-info">
  56. <p>{{ __('auto.暂无进游戏时长统计数据') }}</p>
  57. </div>
  58. @endif
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. @endsection