Imagen de fondo donde se ve a una mujer haciendo un test

{{ __('trainer.generating_answers') }}

{{-- Start screen --}} @if ($state === 'start') @php $supportedLocales = config('app.supported_locales', []); $currentLocale = app()->getLocale(); $hideProgress = request()->boolean('hide_progress'); @endphp

{{ __('trainer.hero_title') }}

{!! __('trainer.hero_subtitle_html') !!}

{{ $this->examDisplayName() }}

{{ __('trainer.alt_community_icon') }}{{ __('trainer.community') }}

@if ($showNoQuestions)

{{ __('trainer.no_questions_for_community') }}

@endif

{{ __('trainer.alt_year_icon') }}{{ __('trainer.official_repository') }}

@endif @once @endonce {{-- End start screen --}} @if ($state === 'repo')

{{ __('trainer.header_title') }}

{{ $this->examDisplayName() }}

{{ __('trainer.official_repository') }}

{{ __('trainer.repo_intro_1') }}

{{ __('trainer.repo_intro_2') }}

{{ __('trainer.available_exams') }} {{ $selectedRepoYear ?? '' }}

{{ __('trainer.available_exams_intro') }}

{{ __('trainer.community') }} {{ __('trainer.call') }} {{ __('trainer.download') }}
@forelse ($repoExams as $repoExam)
{{ $repoExam['community'] }} {{ $repoExam['year'] }} {{ __('trainer.download_exam_alt', ['community' => $repoExam['community'], 'year' => $repoExam['year']]) }}
@empty
{{ __('trainer.no_exams_call') }}
@endforelse
{{----}}
@endif @if ($state !== 'start' && $state !== 'repo')

{{ __('trainer.header_title') }}

@php $communityName = collect($communities) ->firstWhere('id', (int) ($selectedCommunity ?? 0))['name'] ?? ''; @endphp

{{ $this->examDisplayName() }}

{{ $communityName }}

@if ($state === 'exam')

{{ __('trainer.instructions_title') }}

@if ($exam?->general_instructions)

{!! nl2br(e($exam->general_instructions)) !!}

@else

{{ __('trainer.instructions_fallback_1') }}

{{ __('trainer.instructions_fallback_2') }}

@endif
@php $examBlocks = $this->examBlocks; $blockCompletion = $this->blockCompletion; @endphp @foreach ($examBlocks as $index => $block)

{{ $index + 1 }}.- {!! $block->statement !!}

@php $ungroupedItems = $block->items ->whereNull('pau_block_group_id') ->sortBy('order') ->values(); @endphp @if ($ungroupedItems->isNotEmpty())
    @foreach ($ungroupedItems as $item)
  • type === 'free') data-editor-trigger data-editor-question-id="{{ $item->id }}" data-editor-answer='@json((string) ($answers[$item->id] ?? ""))' @endif >{!! $item->question !!}
    @if ($item->type === 'match' && $item->matches->isNotEmpty()) @php $optionsById = $item->matches->keyBy('id'); $selectedMap = $answers[$item->id]['match'] ?? []; $usedRightIds = array_values(array_map( 'strval', array_filter($selectedMap, fn ($id) => $id !== null && $id !== '') )); @endphp
    @foreach ($item->matches as $match) @php $selectedId = $selectedMap[$match->id] ?? null; $selectedText = $selectedId && isset($optionsById[$selectedId]) ? $optionsById[$selectedId]->right_text : ''; @endphp
    {{ $match->left_text }}
    {{ $selectedText }}
    @endforeach
    @foreach ($item->matches as $match)
    {{ $match->right_text }}
    @endforeach
    @endif @if ($item->type === 'test') @php $testOptions = $this->extractTestOptions($item); @endphp @if (!empty($testOptions)) @endif @endif @php $answerValue = $answers[$item->id] ?? null; if ($item->type === 'test') { $answerText = ''; } elseif (is_array($answerValue) && isset($answerValue['match'])) { $lines = []; foreach ($answerValue['match'] as $leftId => $rightId) { $leftText = $optionsById[$leftId]->left_text ?? null; $rightText = $optionsById[$rightId]->right_text ?? null; if ($leftText && $rightText) { $lines[] = $leftText . ' → ' . $rightText; } } $answerText = implode("\n", $lines); } else { $answerText = $answerValue; } @endphp @if (!empty($answerText))
    type === 'free') data-editor-trigger data-editor-question-id="{{ $item->id }}" data-editor-answer='@json((string) ($answers[$item->id] ?? ""))' @endif >
    @if($item->type === 'match') {!! nl2br(e((string) $answerText)) !!} @else {!! (string) $answerText !!} @endif
    @endif
  • @endforeach
@endif @if ($block->groups->isNotEmpty()) @foreach ($block->groups as $group) @if ($group->title)

{{ $group->title }}

@endif @if ($group->items->isNotEmpty())
    @foreach ($group->items as $item)
  • type === 'free') data-editor-trigger data-editor-question-id="{{ $item->id }}" data-editor-answer='@json((string) ($answers[$item->id] ?? ""))' @endif >{!! $item->question !!}
    @if ($item->type === 'match' && $item->matches->isNotEmpty()) @php $optionsById = $item->matches->keyBy('id'); $selectedMap = $answers[$item->id]['match'] ?? []; $usedRightIds = array_values(array_map( 'strval', array_filter($selectedMap, fn ($id) => $id !== null && $id !== '') )); @endphp
    @foreach ($item->matches as $match) @php $selectedId = $selectedMap[$match->id] ?? null; $selectedText = $selectedId && isset($optionsById[$selectedId]) ? $optionsById[$selectedId]->right_text : ''; @endphp
    {{ $match->left_text }}
    {{ $selectedText }}
    @endforeach
    @foreach ($item->matches as $match)
    {{ $match->right_text }}
    @endforeach
    @endif @if ($item->type === 'test') @php $testOptions = $this->extractTestOptions($item); @endphp @if (!empty($testOptions)) @endif @endif @php $answerValue = $answers[$item->id] ?? null; if ($item->type === 'test') { $answerText = ''; } elseif (is_array($answerValue) && isset($answerValue['match'])) { $lines = []; foreach ($answerValue['match'] as $leftId => $rightId) { $leftText = $optionsById[$leftId]->left_text ?? null; $rightText = $optionsById[$rightId]->right_text ?? null; if ($leftText && $rightText) { $lines[] = $leftText . ' → ' . $rightText; } } $answerText = implode("\n", $lines); } else { $answerText = $answerValue; } @endphp @if (!empty($answerText))
    type === 'free') data-editor-trigger data-editor-question-id="{{ $item->id }}" data-editor-answer='@json((string) ($answers[$item->id] ?? ""))' @endif >
    @if($item->type === 'match') {!! nl2br(e((string) $answerText)) !!} @else {!! (string) $answerText !!} @endif
    @endif
  • @endforeach
@endif @endforeach @endif
@endforeach {{--@foreach ($this->examQuestions as $index => $question)
{{ $index + 1 }}.
{!! $question->statement !!}
@endforeach--}}
@if ($showSubmitConfirm) @php $completion = $this->completionSummary; $pendingBlocks = (int) ($completion['pending'] ?? 0); $isComplete = (bool) ($completion['is_complete'] ?? false); @endphp

{{ __('trainer.submit_exam_confirm_title') }}

@if ($isComplete)

{{ __('trainer.submit_exam_confirm_message_complete') }}

@else

{{ __('trainer.submit_exam_confirm_message') }}

@endif
@endif @endif @if ($state === 'results')
@endif
@endif