index.blade.php 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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" class="form-horizontal form-line" name="thisform">
  7. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  8. <select name="lottery_id" required="required" class="form-control" >
  9. <option value="0" > 选择活动 </option>
  10. @foreach ($lotteryList as $value)
  11. <option value="{{$value['id']}}" @if( request('lottery_id',0) == $value['id'] ) selected @endif>{{$value['name']}}</option>
  12. @endforeach
  13. </select>
  14. </div>
  15. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  16. <select name="status" required="required" class="form-control" >
  17. <option value="" > 状态 </option>
  18. @foreach ($statusList as $value)
  19. <option value="{{$value['id']}}" @if( !is_null(request('status')) && request('status') == $value['id'] ) selected @endif>{{$value['name']}}</option>
  20. @endforeach
  21. </select>
  22. </div>
  23. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  24. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  25. </div>
  26. <button type="submit" onclick="alter_from_attr({'method':'get','action':`{{url('admin/lottery_riddle_record/index')}}`})" class="btn btn-sm btn-primary"> 查询</button>
  27. <a href="{{url('admin/lottery_riddle_record/index')}}" class="btn btn-sm btn-default" >重置</a>
  28. @if( check_auth('admin/lottery_riddle_record/down_excel') )
  29. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/lottery_riddle_record/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载</button>
  30. @endif
  31. </form>
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="table-responsive">
  35. <table class="table table-striped table-bordered table-hover">
  36. <thead>
  37. <tr>
  38. <th>记录ID</th>
  39. <th>活动ID</th>
  40. <th>活动名称</th>
  41. <th>客户编码</th>
  42. <th>客户昵称</th>
  43. <th>奖品名称</th>
  44. <th>状态</th>
  45. <th>收货信息</th>
  46. <th>中奖时间</th>
  47. <th>修改时间</th>
  48. <th>操作</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @foreach ($list as $a)
  53. <tr>
  54. <th>{{$a['id']}}</th>
  55. <td>{{$a['lottery_id']}}</td>
  56. <td>{{$a['active_name']}}</td>
  57. <td>{{$a['custom_code']}}</td>
  58. <td>{{$a['username']}}</td>
  59. <td>{{$a['reward_name']}}</td>
  60. <td>{{$a['state']}}</td>
  61. <td>{{$a['contact_name']}} {{$a['contact_phone']}} {{$a['contact_province']}} {{$a['contact_city']}} {{$a['contact_area']}} {{$a['contact_addr']}} {{$a['contact_shop']}}</td>
  62. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  63. <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
  64. <td>
  65. @if(check_auth('admin/lottery_riddle_record/set_status'))
  66. @if( $a['status'] != 8 )
  67. <a data-url="{{url('admin/lottery_riddle_record/set_status?'.http_build_query(['id'=>$a['id'],'status'=>8]))}}" class="set_status btn btn-sm btn-success" >完成</a>
  68. @else
  69. <!-- <a data-url="{{url('admin/lottery_riddle_record/set_status?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" class="set_status btn btn-sm btn-danger" >停用</a> -->
  70. @endif
  71. @endif
  72. </td>
  73. </tr>
  74. @endforeach
  75. <tr>
  76. <td colspan="20" class="page">{{$list->render()}}</td>
  77. </tr>
  78. <tr>
  79. <td colspan="20">总计 {{$list->total()}} 个商店</td>
  80. </tr>
  81. </tbody>
  82. </table>
  83. </div>
  84. </div>
  85. </div>
  86. @endsection