@if(count($completedReports) == 0)

No Attempts Found

This student has not attempted any coding questions yet.

@else

Codings Review

Detailed view of all coding question attempts

{{ count($completedReports) }} Attempts
@foreach($completedReports as $row) @php $q = $codingQuestions[$row->questionid] ?? null; $difficultyColors = [ 'easy' => ['bg' => '#065f46', 'text' => '#34d399'], 'medium' => ['bg' => '#92400e', 'text' => '#f59e0b'], 'hard' => ['bg' => '#991b1b', 'text' => '#f87171'], 'Easy' => ['bg' => '#065f46', 'text' => '#34d399'], 'Medium' => ['bg' => '#92400e', 'text' => '#f59e0b'], 'Hard' => ['bg' => '#991b1b', 'text' => '#f87171'] ]; $level = $q->level ?? 'easy'; $colors = $difficultyColors[$level] ?? $difficultyColors['easy']; @endphp
{{ $loop->iteration }}

{{ $q->title ?? 'Question #' . $row->questionid }}

Difficulty: {{ ucfirst($level) }}
Submitted: {{ \Carbon\Carbon::parse($row->end_time)->format('d M Y, h:i A') }}
@endforeach
@endif