index.blade.php 2.5 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" 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="active_id" required="required" class="form-control" >
  9. <option value="0" > 选择活动 </option>
  10. @foreach ($activeList as $value)
  11. <option value="{{$value['id']}}" @if( request('active_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. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  17. </div>
  18. <button type="submit" onclick="alter_from_attr({'method':'get','action':`{{url('admin/riddle_active_record/index')}}`})" class="btn btn-sm btn-primary"> 查询</button>
  19. <a href="{{url('admin/riddle_active_record/index')}}" class="btn btn-sm btn-default" >重置</a>
  20. @if( check_auth('admin/riddle_active_record/down_excel') )
  21. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/riddle_active_record/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载</button>
  22. @endif
  23. </form>
  24. <div class="row">
  25. <div class="col-xs-12">
  26. <div class="table-responsive">
  27. <table class="table table-striped table-bordered table-hover">
  28. <thead>
  29. <tr>
  30. <th>记录ID</th>
  31. <th>活动ID</th>
  32. <th>活动名称</th>
  33. <th>客户编码</th>
  34. <th>客户昵称</th>
  35. <th>是否答对</th>
  36. <th>微伴ID</th>
  37. <th>答题时间</th>
  38. <th>操作</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. @foreach ($list as $a)
  43. <tr>
  44. <th>{{$a['id']}}</th>
  45. <td>{{$a['active_id']}}</td>
  46. <td>{{$a['active_name']}}</td>
  47. <td>{{$a['custom_code']}}</td>
  48. <td>{{$a['username']}}</td>
  49. <td>{{$a['is_answer']?'是':'否'}}</td>
  50. <td>{{$a['weiban_extid']??''}}</td>
  51. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  52. <td>
  53. </td>
  54. </tr>
  55. @endforeach
  56. <tr>
  57. <td colspan="20" class="page">{{$list->render()}}</td>
  58. </tr>
  59. <tr>
  60. <td colspan="20">总计 {{$list->total()}} 条记录</td>
  61. </tr>
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. </div>
  67. @endsection