index.blade.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  25. <a href="{{url('admin/video_learn_question/index')}}" class="btn btn-sm btn-default" >重置</a>
  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>习题ID</th>
  38. <th>习题题目</th>
  39. <th>正确与否</th>
  40. <th>所得积分</th>
  41. <th>答题时间</th>
  42. <th>操作</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. @foreach ($list as $a)
  47. <tr>
  48. <th>{{$a['id']}}</th>
  49. <td>{{$a['course_name']}}</td>
  50. <td>{{$a['custom_code']}}</td>
  51. <td>{{$a['custom_name']}}</td>
  52. <td>{{$a['question_name']}}</td>
  53. <td>
  54. @foreach ($a['answer_list'] as $v)
  55. <p>
  56. {{$v['value']}}
  57. @if($v['is_answer']) 【答案】 @endif
  58. </p>
  59. @endforeach
  60. </td>
  61. <td>{{$a['is_answer']?'答对':'答错'}}</td>
  62. <td>{{$a['get_score']}}</td>
  63. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  64. <td>
  65. </td>
  66. </tr>
  67. @endforeach
  68. <tr>
  69. <td colspan="20" class="page">{{$list->render()}}</td>
  70. </tr>
  71. <tr>
  72. <td colspan="20">总计 {{$list->total()}} 个记录</td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. </div>
  79. @endsection