{{-- 上传表单卡片 --}}

上传考试卷子

{{-- 左侧:选择老师和学生 --}}
{{-- 右侧:上传图片 --}}
@if($uploadedImage) {{-- 图片预览 --}}
预览
@else {{-- 上传区域 --}}
@endif
{{-- 提交按钮 --}}
{{-- 最近上传记录 --}}

最近上传记录

@if(count($this->recentRecords) > 0)
@foreach($this->recentRecords as $record) @endforeach
学生 文件名 状态 进度 上传时间
{{ $record['student']['name'] ?? '未知' }} {{ $record['image_filename'] }} @php $statusClass = match($record['status']) { 'pending' => 'badge-ghost', 'processing' => 'badge-info', 'completed' => 'badge-success', 'failed' => 'badge-error', default => 'badge-ghost', }; $statusText = match($record['status']) { 'pending' => '待处理', 'processing' => '处理中', 'completed' => '已完成', 'failed' => '失败', default => $record['status'], }; @endphp {{ $statusText }} @if($record['total_questions'] > 0) {{ $record['processed_questions'] }}/{{ $record['total_questions'] }} @else - @endif {{ \Carbon\Carbon::parse($record['created_at'])->format('m-d H:i') }}
@else

暂无上传记录

@endif