@csrf

{{ $track_record->user_training->training->name }}

{{ __('app.trainee_progress') }}
@php $style_progress_bar = 'style="width: ' . $progress_bar . '%"'; @endphp
{{ $progress_bar_count }} ({{ $progress_bar }}%)

{{ __("app.title") }} : {{ $track_record->task->title }}

@if ($task->data_type == 'image' && $data_path_name) @endif @if ($task->data_type == 'video' && $data_path_name)
@endif @if ($task->data_type == 'url' && $data_path)
@if (strpos($data_path, 'iframe') !== false) {!! $data_path !!} @else
@endif
@endif @if ($task->data_type == 'scorm' && $data_path) @foreach($scorm_manifest['sco'] as $i => $line) @php $launch = $line['launch']; @endphp
@endforeach @if ($scorm_debug)
SCROM VERSION : {{ $scorm_manifest['schemaversion'] }}
@else @endif @endif
@if ($task->answer_type && count($task->answers)) @if (in_array($task->answer_type, array(1, 2, 3, 6)))
{{ __('app.question') }} :
{{ $task->question ? : $track_record->task->title }}
@endif
@switch ($task->answer_type) @case (1) @if (count($task->answers)) {{ __('app.select_the_correct_answer') }} :
@foreach ($task->answers as $answer)
@endforeach
@endif @break @case (2) @if (count($task->answers)) {{ __('app.select_the_correct_answers') }} :
@foreach ($task->answers as $answer)
@endforeach
@endif @break @case (3) @if (count($task->answers)) {{ __('app.reorder_the_following_list_to_reflect_the_correct_order') }} :
    @foreach ($task->answers as $answer)
  • {{ $answer->answer }}
  • @endforeach
@endif @break @case (4) @php $select_option = ''; foreach ($task->answers as $answer) { $select_option .= ''; } $select = ' '; $question = str_replace('___', $select, $task->question); @endphp {{ __('app.question') }} ({{ __('app.select_the_correct_answer_to_make_the_sentence_correct') }}) :
{!! $question !!}
@break @case (5) @php $input = ''; $question = str_replace('___', $input, $task->question); @endphp {{ __('app.question') }} ({{ __('app.fill_the_correct_number_in_the_field') }}) :
{!! $question !!}
@break @case (6) @php $seconds = 5; @endphp
{{ __('app.time_left') }} {{ $seconds }} {{ __('app.seconds') }}
@if (count($task->answers)) {{ __('app.select_the_correct_answer') }} :
@foreach ($task->answers as $answer)
@endforeach
@endif
@break @endswitch @error('answer')
{{ $message }}
@enderror
@endif @if ($task->extra_link)
{{ __('app.additional_information') }} :
@endif @if ($task->extra_link)
{{ __('app.documents') }} :
@foreach ($documents as $document_name => $document_path) @php $link_path = route('other.download', [$locale, $document_name]); @endphp @endforeach
{{ $document_name }}
@endif