question-tem-question-check-preview.blade.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. @props([
  2. 'questions' => ['choice' => [], 'fill' => [], 'answer' => []],
  3. 'student' => ['name' => '________', 'grade' => '________'],
  4. 'teacher' => ['name' => '________'],
  5. 'pdfMeta' => [],
  6. ])
  7. @php
  8. $gradingCode = $pdfMeta['exam_code'] ?? 'tem_preview';
  9. $studentName = $pdfMeta['student_name'] ?? ($student['name'] ?? '________');
  10. $paperHeaderTitle = $pdfMeta['header_title'] ?? ($studentName . '|' . $gradingCode . '|题目质检');
  11. @endphp
  12. @once
  13. <link rel="stylesheet" href="/css/katex/katex.min.css">
  14. <style>
  15. .qtr-qc-preview {
  16. max-width: 100%;
  17. overflow-x: auto;
  18. }
  19. .qtr-qc-preview .qc-page {
  20. width: 100%;
  21. max-width: none;
  22. margin: 0 0 1rem 0;
  23. padding: 0;
  24. background: #fff;
  25. color: #000;
  26. }
  27. @include('pdf.partials.answer-detail-styles')
  28. @include('pdf.partials.grading-scan-sheet-styles')
  29. @include('pdf.partials.paper-body-core-styles')
  30. @include('pdf.partials.paper-exam-shared-image-styles')
  31. </style>
  32. @endonce
  33. <div class="qtr-qc-preview math-render">
  34. <div class="qc-page">
  35. @include('components.exam.paper-body', ['questions' => $questions, 'grading' => false])
  36. </div>
  37. <div class="qc-page">
  38. @include('pdf.partials.answer-detail-page', ['questions' => $questions])
  39. </div>
  40. </div>