@extends('layouts.app') @section('content')
@forelse($training->assignments as $assignment) @php $user = $assignment->user; $attempts = $userAttempts->get($user->id, collect()); $gradedAttempt = $attempts->whereNotNull('grade')->first(); @endphp

{{ $user->name }}

{{ $user->email }}
@if($gradedAttempt) Final Grade: {{ $gradedAttempt->grade }} @else Pending Final Grade @endif

Submitted Attempts ({{ $attempts->count() }})

@if($attempts->count() > 0)
@foreach($attempts as $index => $attempt) @endforeach
Attempt # Submitted At Duration Score AI Review Status Assigned Grade Actions
Attempt #{{ $attempts->count() - $index }} {{ $attempt->created_at->format('M d, Y h:i A') }} ({{ $attempt->created_at->diffForHumans() }}) {{ round($attempt->duration_sec) }}s {{ $attempt->overall_score ?: 'N/A' }}/100 @if($attempt->llm_report) AI Generated @else Not Generated @endif @if($attempt->grade) {{ $attempt->grade }} @else Ungraded @endif Select & Review Attempt
@else

No pitch attempts submitted by this user yet.

@endif
@empty

No sales representatives assigned to this training scenario.

@endforelse
@endsection