card.blade.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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-wrench"></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='/admin/user/card/{{$user_id}}'>
  26. <spen style="padding-left: 10px" >{{ __('auto.变化原因:') }}</spen>
  27. <select class="form-control" name="describe" value="{{$describe}}" style="color: black">
  28. <option value="">{{ __('auto.选择状态') }}</option>
  29. @foreach($describe_list as $k=>$v)
  30. <option value="{{$v}}" @if($v===$describe) selected @endif>{{$v}}</option>
  31. @endforeach
  32. </select>
  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/user/card/{{$user_id}}" class="btn btn-sm btn-gradient-warning btn-icon-text">{{ __('auto.清空') }}</a>&nbsp;&nbsp;
  38. <!-- <a href="/admin/user/list/{{$user_id}}" class="btn btn-sm btn-gradient-info btn-icon-text">返回</a> -->
  39. </form>
  40. <table class="table table-bordered">
  41. <thead>
  42. <tr>
  43. <th>{{ __('auto.时间') }}</th>
  44. <th>{{ __('auto.变化原因') }}</th>
  45. <th>{{ __('auto.渠道名称') }}</th>
  46. <th>{{ __('auto.变化前福卡') }}</th>
  47. <th>{{ __('auto.变化福卡') }}</th>
  48. <th>{{ __('auto.变化后福卡') }}</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @foreach($list as $k=>$v)
  53. <tr>
  54. <td style="width: 13%">{{ $v->UpdateTime }}</td>
  55. <td style="width: 10%">{{ $v->Describe}}</td>
  56. <td style="width: 10%">{{ $v->Channel}}</td>
  57. <td style="width: 10%">{{ $v->BeforeRevenue}}</td>
  58. <td style="width: 10%">{{ $v->ChangeRevenue}}</td>
  59. <td style="width: 10%">{{ $v->AfterRevenue}}</td>
  60. </tr>
  61. @endforeach
  62. </tbody>
  63. </table>
  64. <div class="box-footer clearfix">
  65. {{ __('auto.总共') }} <b>{{ $list->appends(['describe'=>$describe,'start_time'=>$start_time,'end_time'=>$end_time])->total() }}</b> {{ __('auto.条,分为') }}<b>{{ $list->lastPage() }}</b>{{ __('auto.页') }}
  66. {!! $list->links() !!}
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <script>
  75. function publish(id){
  76. myConfirm("{{ __('auto.是否继续') }}?",function(){
  77. var myselect=document.getElementById("state"+id);
  78. var index=myselect.selectedIndex;
  79. var data = {state:myselect.options[index].value}
  80. myRequest("/admin/shop/update/"+id,"post",data,function(res){
  81. layer.msg(res.msg)
  82. setTimeout(function(){
  83. window.location.reload();
  84. },1500)
  85. });
  86. });
  87. }
  88. $('.menu-switch').click(function(){
  89. id = $(this).attr('id');
  90. state = $(this).attr('state');
  91. if(state == "on"){
  92. $('.pid-'+id).hide();
  93. $(this).attr("state","off")
  94. $(this).removeClass('mdi-menu-down').addClass('mdi-menu-right');
  95. }else{
  96. $('.pid-'+id).show();
  97. $(this).attr("state","on")
  98. $(this).removeClass('mdi-menu-right').addClass('mdi-menu-down');
  99. }
  100. })
  101. </script>
  102. @endsection