mj.blade.php 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. <form class="well form-inline margin-top-20" method="get" action='/api/mj'>
  26. <span style="padding-left: 5px" >{{ __('auto.渠道:') }}</span >
  27. <select class="form-control" name="appid" value="{{$appid}}" style="color: black">
  28. <option value="">{{ __('auto.请选择渠道') }}</option>
  29. @foreach($app as $k=>$v)
  30. <option value="{{$k}}" @if($k==$appid) selected @endif>{{ __('auto.云南麻将') }}{{$v}}</option>
  31. @endforeach
  32. </select>
  33. <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
  34. <input type="date" step="01" name="start_date" class="form-control" value="{{$start_date}}" />&nbsp;&nbsp;
  35. <input type="date" step="01" name="end_date" class="form-control" value="{{$end_date}}" />&nbsp;&nbsp;
  36. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  37. <a href="/api/mj" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  38. </form>
  39. <table class="table table-bordered">
  40. <thead>
  41. <tr>
  42. <th width="6%">{{ __('auto.时间') }}</th>
  43. <th width="4%">{{ __('auto.子游戏名称') }}</th>
  44. <th width="6%">{{ __('auto.参游人数') }}</th>
  45. <th width="6%">{{ __('auto.游戏局数') }}</th>
  46. <th width="6%">{{ __('auto.开桌数') }}</th>
  47. <th width="6%">{{ __('auto.钻石消耗') }}</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach($list as $k=>$v)
  52. @foreach($v as $k1=>$v1)
  53. <tr>
  54. <td>{{ $v1['date'] }}</td>
  55. <td>{{ $k1 }}</td>
  56. <td>{{ $v1['count'] }}</td>
  57. <td>{{ $v1['js'] }}</td>
  58. <td>{{ $v1['zs'] }}</td>
  59. <td>{{ $v1['xh'] }}</td>
  60. </tr>
  61. @endforeach
  62. @endforeach
  63. </tbody>
  64. </table>
  65. </div>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <script>
  72. $(function(){
  73. cutStr(50);
  74. });
  75. function update(id){
  76. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
  77. myRequest("/admin/accusation/edit/"+id,"post",{},function(res){
  78. layer.msg(res.msg)
  79. setTimeout(function(){
  80. window.location.reload();
  81. },1500)
  82. });
  83. });
  84. }
  85. function del(id){
  86. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  87. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  88. layer.msg(res.msg)
  89. setTimeout(function(){
  90. window.location.reload();
  91. },1500)
  92. });
  93. });
  94. }
  95. </script>
  96. @endsection