header.blade.php 1.1 KB

123456789101112131415161718192021222324252627
  1. @props(['recordData'])
  2. <div class="bg-white rounded-lg shadow-sm border border-gray-200 p-4">
  3. <div class="flex items-center justify-between">
  4. <div>
  5. <h1 class="text-xl font-bold text-gray-900">{{ $title ?? '📊 OCR试卷分析' }}</h1>
  6. @if(isset($recordData['id']))
  7. <p class="text-sm text-gray-600 mt-1">记录ID: {{ $recordData['id'] }}</p>
  8. @endif
  9. @if(isset($recordData['paper_name']))
  10. <p class="text-sm text-gray-600 mt-1">试卷名称: {{ $recordData['paper_name'] }}</p>
  11. @endif
  12. </div>
  13. <div class="flex gap-2">
  14. @if(isset($recordData['status']))
  15. <span class="px-2 py-1 bg-blue-100 text-blue-800 rounded text-xs">
  16. {{ $recordData['status'] }}
  17. </span>
  18. @endif
  19. @if(isset($recordData['student_id']))
  20. <span class="px-2 py-1 bg-gray-100 text-gray-800 rounded text-xs">
  21. {{ $recordData['student_id'] }}
  22. </span>
  23. @endif
  24. </div>
  25. </div>
  26. </div>