@props(['recordData'])

<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-4">
    <div class="flex items-center justify-between">
        <div>
            <h1 class="text-xl font-bold text-gray-900">{{ $title ?? '📊 OCR试卷分析' }}</h1>
            @if(isset($recordData['id']))
                <p class="text-sm text-gray-600 mt-1">记录ID: {{ $recordData['id'] }}</p>
            @endif
            @if(isset($recordData['paper_name']))
                <p class="text-sm text-gray-600 mt-1">试卷名称: {{ $recordData['paper_name'] }}</p>
            @endif
        </div>
        <div class="flex gap-2">
            @if(isset($recordData['status']))
                <span class="px-2 py-1 bg-blue-100 text-blue-800 rounded text-xs">
                    {{ $recordData['status'] }}
                </span>
            @endif
            @if(isset($recordData['student_id']))
                <span class="px-2 py-1 bg-gray-100 text-gray-800 rounded text-xs">
                    {{ $recordData['student_id'] }}
                </span>
            @endif
        </div>
    </div>
</div>
