fish_list.blade.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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/fishlist'>
  33. <span style="padding-left: 5px" >{{ __('auto.场馆:') }}</span >
  34. <select class="form-control" name="sort" value="{{$sort}}" style="color: black">
  35. <option value="">{{ __('auto.全部') }}</option>
  36. @foreach($sort_name as $k=>$v)
  37. <option value="{{$k}}" @if($k==$sort) selected @endif>{{$v}}</option>
  38. @endforeach
  39. </select>
  40. <span style="padding-left: 5px">{{ __('auto.鱼池:') }}</span >
  41. <select class="form-control" name="type" value="{{$type}}" style="color: black">
  42. <option value="">{{ __('auto.全部') }}</option>
  43. @foreach($type_name as $k=>$v)
  44. <option value="{{$v}}" @if($v===$type) selected @endif>{{$v}}{{ __('auto.号鱼池') }}</option>
  45. @endforeach
  46. </select>
  47. <spen style="padding-left: 10px" >{{ __('auto.选择时间:') }}</spen>
  48. <input type="date" step="01" name="start_time" class="form-control" value="{{$start_time}}" />&nbsp;&nbsp;
  49. <input type="date" step="01" name="end_time" class="form-control" value="{{$end_time}}" />&nbsp;&nbsp;
  50. <input type="submit" class="btn btn-sm btn-gradient-dark btn-icon-text" value="{{ __('auto.搜索') }}"/>&nbsp;&nbsp;
  51. <a href="/admin/gold/fishlist" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  52. <a href="/admin/gold/fishlist?excel=1&start_time={{$start_time}}&end_time={{$end_time}}&sort={{$sort}}&type={{$type}}" class="btn btn-sm btn-gradient-light btn-icon-text">{{ __('auto.导出') }}</a>
  53. </form>
  54. <table class="table table-bordered">
  55. <thead>
  56. <tr>
  57. <th width="6%">{{ __('auto.时间') }}</th>
  58. <th width="6%">{{ __('auto.金豆库存') }}</th>
  59. <th width="6%">{{ __('auto.金豆税收') }}</th>
  60. <th width="6%">{{ __('auto.金豆流水') }}</th>
  61. <th width="6%">{{ __('auto.金豆放出') }}</th>
  62. </tr>
  63. </thead>
  64. <tbody>
  65. @foreach($list as $k=>$v)
  66. <tr>
  67. <td>{{ $v->RecordDate }}</td>
  68. <td>{{ $v->GoldStock }}</td>
  69. <td>{{ $v->Revenue }}</td>
  70. <td>{{ $v->GoldTurnover }}</td>
  71. <td>{{ $v->GoldOut }}</td>
  72. </tr>
  73. @endforeach
  74. </tbody>
  75. </table>
  76. <div class="box-footer clearfix">
  77. {{ __('auto.总共') }} <b>{{ $list->appends(['start_time'=>$start_time,'end_time'=>$end_time,'sort'=>$sort,'type'=>$type])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  78. {!! $list->links() !!}
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. <script>
  87. $(function(){
  88. cutStr(50);
  89. });
  90. function update(id){
  91. myConfirm("{{ __('auto.处理操作不可逆,是否继续') }}?",function(){
  92. myRequest("/admin/accusation/edit/"+id,"post",{},function(res){
  93. layer.msg(res.msg)
  94. setTimeout(function(){
  95. window.location.reload();
  96. },1500)
  97. });
  98. });
  99. }
  100. function del(id){
  101. myConfirm("{{ __('auto.删除操作不可逆,是否继续') }}?",function(){
  102. myRequest("/admin/accusation/del/"+id,"post",{},function(res){
  103. layer.msg(res.msg)
  104. setTimeout(function(){
  105. window.location.reload();
  106. },1500)
  107. });
  108. });
  109. }
  110. </script>
  111. @endsection