index.blade.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <form action="" method="get" name="thisform" class="form-horizontal form-line">
  7. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  9. </div>
  10. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  11. <input type="text" class="form-control" name="phone" value="{{request('phone','')}}" placeholder="请输入联系方式查询" />
  12. </div>
  13. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  14. <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入日期查询" />
  15. </div>
  16. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  17. <input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入日期查询" />
  18. </div>
  19. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  20. <button type="button" onclick="alter_from_attr({'method':'get','action':''})" class="btn btn-sm btn-primary" style="margin-right: 20px;"> 查询</button>
  21. <a href="{{url('admin/score_record/index')}}" class="btn btn-sm btn-default" style="margin-right: 20px;" >重置</a>
  22. @if( check_auth('admin/score_record/down_excel') )
  23. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/score_record/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载表格</button>
  24. @endif
  25. </div>
  26. </form>
  27. <div class="row">
  28. <div class="col-xs-12">
  29. <div class="table-responsive">
  30. <table class="table table-striped table-bordered table-hover">
  31. <thead>
  32. <tr>
  33. <th>记录ID</th>
  34. <th>客户编码</th>
  35. <th>客户昵称</th>
  36. <th>联系方式</th>
  37. <th>积分来源</th>
  38. <th>变动积分</th>
  39. <th>剩余积分</th>
  40. <th>支付时间</th>
  41. <th>操作</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. @foreach ($list as $a)
  46. <tr>
  47. <th> {{$a['id']}} </th>
  48. <th> {{$a['custom_code']}} </th>
  49. <td> {{$a['username']}} </td>
  50. <td> {{$a['phone']}} </td>
  51. <td> {{$a['pay_type']}} </td>
  52. <td> {{$a['score']>=0?'+':''}}{{$a['score']}} </td>
  53. <td> {{$a['balance']}} </td>
  54. <td> {{date('Y/m/d H:i:s',$a['pay_time'])}}</td>
  55. <td>
  56. </td>
  57. </tr>
  58. @endforeach
  59. <tr>
  60. <td colspan="20" class="page">{{$list->render()}}</td>
  61. </tr>
  62. <tr>
  63. <td colspan="20">总计 {{$list->total()}} 个记录</td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. </div>
  70. @endsection