index.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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">
  7. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="record_id" value="{{request('record_id','')}}" placeholder="请输入记录ID查询" />
  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. <select name="course_id" class="form-control selectpicker" data-live-search="true" data-live-search-placeholder="搜索课程名称" data-none-results-text="未搜索到 {0}" title="选择课程名称">
  12. <option value="0" @if( 0 == request('course_id',0) ) selected @endif>不限课程</option>
  13. @foreach ($courseList as $value)
  14. <option value="{{$value['id']}}" @if( $value['id'] == request('course_id',0) ) selected @endif>{{$value['name']}}</option>
  15. @endforeach
  16. </select>
  17. </div>
  18. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  19. <input type="text" class="form-control" name="custom_code" value="{{request('custom_code','')}}" placeholder="请输入客户编码查询" />
  20. </div>
  21. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  22. <input type="text" class="form-control" name="custom_name" value="{{request('custom_name','')}}" placeholder="请输入客户昵称查询" />
  23. </div>
  24. <div class="form-group col col-xs-4 col-md-2" style="margin-right: 2px;">
  25. <button type="button" onclick="alter_from_attr({'method':'get','action':''})" class="btn btn-sm btn-primary" style="margin-right: 20px;" > 查询</button>
  26. <a href="{{url('admin/video_learn_answer/index')}}" class="btn btn-sm btn-default" style="margin-right: 20px;" >重置</a>
  27. @if( check_auth('admin/video_learn_answer/down_excel') )
  28. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/video_learn_answer/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载表格</button>
  29. @endif
  30. </div>
  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>课程名称</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. </tr>
  49. </thead>
  50. <tbody>
  51. @foreach ($list as $a)
  52. <tr>
  53. <th>{{$a['id']}}</th>
  54. <td>{{$a['course_name']}}</td>
  55. <td>{{$a['custom_code']}}</td>
  56. <td>{{$a['custom_name']}}</td>
  57. <td>{{$a['question_title']}}</td>
  58. <td>
  59. @foreach ($a['answer_list'] as $v)
  60. <p @if( $a['answer_id'] == $v['id'] ) @if( $a['is_answer'] ) class="text-green" @else class="text-red" @endif @endif>
  61. {{$v['value']}} @if($v['is_answer']) 【○】 @endif
  62. </p>
  63. @endforeach
  64. </td>
  65. <td>{{$a['get_score']}}</td>
  66. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  67. <td>
  68. </td>
  69. </tr>
  70. @endforeach
  71. <tr>
  72. <td colspan="20" class="page">{{$list->render()}}</td>
  73. </tr>
  74. <tr>
  75. <td colspan="20">总计 {{$list->total()}} 个记录</td>
  76. </tr>
  77. </tbody>
  78. </table>
  79. </div>
  80. </div>
  81. </div>
  82. @endsection