@extends('admin.layout') @section('content')

{{ $user->first_name }} {{ $user->last_name }}

{{ $user->email }}

Back Edit
@csrf @method('PATCH')
@if($user->id !== auth()->id())
@csrf @method('DELETE')
@endif

Test Sessions

{{ $testStats['total_sessions'] }}

Completed

{{ $testStats['completed_sessions'] }}

Avg Score

{{ number_format($testStats['average_score'] ?? 0, 1) }}

Research Papers

{{ $testStats['total_research_papers'] }}

Basic Information

{{ $user->first_name }} {{ $user->last_name }}

{{ $user->email }}

{{ $user->date_of_birth->format('M j, Y') }}

{{ ucfirst($user->role) }}
{{ $user->is_active ? 'Active' : 'Inactive' }}

{{ $user->created_at->format('M j, Y') }}

Location Information

{{ $user->school }}

{{ $user->country }}

{{ $user->city }}

@if($user->subjectRegistrations->count() > 0)

Subject Registrations

@foreach($user->subjectRegistrations as $registration)

{{ $registration->subject->name }}

Level: {{ $registration->competitionLevel->name ?? 'N/A' }}

{{ ucfirst($registration->payment_status) }}
@endforeach
@endif

Student ID Card

@if($user->student_id_image)
Student ID

Verified Student ID

Uploaded: {{ $user->created_at->format('M j, Y') }}

@else

No Student ID Uploaded

Student has not uploaded their ID card yet

Verification pending
@endif

Recent Test Sessions

@if($user->testSessions->count() > 0)
@foreach($user->testSessions->take(5) as $session)

{{ $session->test->title ?? 'N/A' }}

{{ ucfirst(str_replace('_', ' ', $session->status)) }} @if($session->total_score) {{ $session->total_score }} pts @endif

{{ $session->created_at->format('M j, Y') }}

@endforeach
@else

No test sessions yet

@endif
@if($user->researchPapers->count() > 0)

Research Papers

@foreach($user->researchPapers->take(3) as $paper)

{{ Str::limit($paper->title, 50) }}

{{ $paper->created_at->format('M j, Y') }}

@endforeach
@endif @if($user->videoSessionsAsJudge->count() > 0)

Judge Sessions

@foreach($user->videoSessionsAsJudge->take(3) as $session)

Research Paper Review

{{ $session->scheduled_time->format('M j, Y H:i') }}

@endforeach
@endif
@endsection