{{-- 试卷基本信息组件 --}}
<div class="card bg-base-100 shadow-xl">
    <div class="card-body">
        <h2 class="card-title">
            <svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path>
            </svg>
            试卷信息
        </h2>

        <div class="divider my-2"></div>

        <div class="space-y-3">
            <div class="flex justify-between items-center">
                <span class="text-sm opacity-70">学生信息</span>
                <div class="text-right">
                    <div class="font-semibold">{{ $studentInfo['name'] ?? '未知学生' }}</div>
                    <div class="text-xs opacity-70">{{ $studentInfo['grade'] ?? '' }} - {{ $studentInfo['class_name'] ?? '' }}</div>
                </div>
            </div>

            <div class="divider my-1"></div>

            <div class="flex justify-between items-center">
                <span class="text-sm opacity-70">试卷形式</span>
                <span class="badge badge-outline">{{ $paperTypeLabel }}</span>
            </div>

            <div class="divider my-1"></div>

            <div class="flex justify-between items-center">
                <span class="text-sm opacity-70">处理状态</span>
                <div>{!! $statusBadge !!}</div>
            </div>

            <div class="divider my-1"></div>

            <div class="flex justify-between items-center">
                <span class="text-sm opacity-70">上传时间</span>
                <span class="font-mono text-sm">{{ \Carbon\Carbon::parse($recordData['created_at'])->format('Y-m-d H:i') }}</span>
            </div>

            @if(isset($recordData['total_questions']) && $recordData['total_questions'])
            <div class="divider my-1"></div>
            <div class="flex justify-between items-center">
                <span class="text-sm opacity-70">题目数量</span>
                <span class="badge badge-primary badge-lg">{{ $recordData['total_questions'] }} 题</span>
            </div>
            @endif
        </div>
    </div>
</div>
