@extends('layouts.app') @section('content')

Scenario Prompt

{{ $training->prompt_text }}

@if($training->description)

Description

{{ $training->description }}

@endif
@if($training->isAiAvatar())

Pre-Generated AI Avatar Script & Persona

Persona Name: {{ $training->client_name }} ({{ $training->client_title }})
Profile / Organization Context: {{ $training->company_desc }}
Voice Model: {{ $training->voice_name }}
@if($training->dialogue_script)

Greeting:

"{{ $training->dialogue_script['greeting'] ?? 'No greeting script' }}"

Generated Dialogue Stages & Objections:

@foreach($training->dialogue_script['objections'] ?? [] as $index => $obj)
Stage / Objection {{ $index + 1 }}: {{ $obj['objection'] ?? '' }}
Follow-up Question: {{ $obj['question'] ?? '' }}
@endforeach @endif
@endif

Assigned Users ({{ $training->assignments->count() }})

@forelse($training->assignments as $assignment)
{{ $assignment->user->name }}
{{ $assignment->user->email }}
@csrf @method('DELETE')
@empty

No users assigned yet.

@endforelse

User Attempts ({{ $training->attempts->count() }})

@forelse($training->attempts as $attempt)
{{ $attempt->user->name }}
Score: {{ $attempt->overall_score ?: 'N/A' }}/100 | {{ $attempt->created_at->diffForHumans() }}
Review
@empty

No user attempts submitted yet.

@endforelse
@endsection