statistics.blade.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. </form>
  32. <br>
  33. <table class="table table-bordered">
  34. <thead>
  35. <tr>
  36. <th width="12%">{{ __('auto.统计日期') }}</th>
  37. <th width="28%">{{ __('auto.游戏') }}</th>
  38. <th width="15%">{{ __('auto.上报次数') }}</th>
  39. <th width="22%">{{ __('auto.平均耗时(秒)') }}</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @foreach($statistics as $stat)
  44. <tr>
  45. <td>{{ $stat['log_date'] }}</td>
  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. </tr>
  50. @endforeach
  51. </tbody>
  52. </table>
  53. @if(count($statistics) == 0)
  54. <div class="alert alert-info">
  55. <p>{{ __('auto.暂无进游戏时长统计数据') }}</p>
  56. </div>
  57. @endif
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. @endsection