Score Report
Exam Title: {{ $schedule->exam?->title }}
Category: {{ $schedule->exam?->category?->name ?? 'N/A' }}
Schedule Type: {{ ucfirst($schedule->schedule_type) }}
Schedule Start Date: {{ $schedule->start_date ? $schedule->start_date->format('F j, Y') : 'N/A' }}
Schedule End Date: {{ $schedule->end_date ? $schedule->end_date->format('F j, Y') : 'N/A' }}
Report Generated: {{ now()->format('F j, Y \a\t g:i A') }}
Student Scores:
@forelse($submissions as $submission) @empty @endforelse
Student Name Group Score Total Marks Percentage Pass/Fail Submitted At Time Taken Accuracy
{{ $submission->student?->full_name ?? 'N/A' }} {{ $submission->group?->name ?? 'N/A' }} {{ $submission->score ?? 0 }} {{ $submission->total_marks ?? 0 }} {{ number_format($submission->percentage ?? 0, 1) }}% {{ $submission->passed ? 'PASS' : 'FAIL' }} @if($submission->submitted_at) {{ \Carbon\Carbon::parse($submission->submitted_at)->format('M j, Y g:i A') }} @else N/A @endif @if($submission->time_taken_seconds) {{ gmdate('H:i:s', $submission->time_taken_seconds) }} @else N/A @endif {{ number_format($submission->accuracy ?? 0, 1) }}%
No exam submissions found for this schedule.
@if($submissions->count() > 0)
Summary Statistics:
Total Submissions: {{ $submissions->count() }}
Passed: {{ $submissions->where('passed', true)->count() }}
Failed: {{ $submissions->where('passed', false)->count() }}
Pass Rate: {{ $submissions->count() > 0 ? number_format(($submissions->where('passed', true)->count() / $submissions->count()) * 100, 1) : 0 }}%
Average Score: {{ number_format($submissions->avg('percentage') ?? 0, 1) }}%
Highest Score: {{ number_format($submissions->max('percentage') ?? 0, 1) }}%
Lowest Score: {{ number_format($submissions->min('percentage') ?? 0, 1) }}%
@endif