@extends('layouts.staff_dashboard') @section('title', 'Exam Attempts') @section('content')

Exam Attempts

Exam: {{ $exam->exam_name }} Course: {{ $exam->course_name }} Date: {{ $exam->displayDate }} Time: {{ $exam->displayStartTime }} - {{ $exam->displayEndTime }} Questions: {{ $exam->question_count }} Total Attempts: {{ $attemptedStudents->total() }}
@if($attemptedStudents->isEmpty())

No Students Started

No students have started this exam yet.

Back to Exams
@else
@foreach($attemptedStudents as $index => $student) @endforeach
# Student Name Registration No Started At Last Activity Actions
{{ ($attemptedStudents->currentPage() - 1) * $attemptedStudents->perPage() + $index + 1 }}
{{ $student->name }}
{{ $student->regno }} @if($student->started_at) {{ Carbon\Carbon::parse($student->started_at)->format('d M, Y h:i A') }} @else N/A @endif @if($student->last_activity) {{ Carbon\Carbon::parse($student->last_activity)->format('d M, Y h:i A') }} @else N/A @endif
{{ $attemptedStudents->links('staff.pagination.attempts') }}
@endif
@endsection