@extends($layout ?? 'company.layouts.main') @section('content')
Back

Show Virtual Task response

Question Answers

@foreach($task_responses as $task_key => $task_response) Task {{ $task_key + 1 }} @endforeach
@forelse($task_responses as $task_key=> $task_response) @php $task = $task_response->virtualExpTask; $statusLabel = (int) $task_response->status === 2 ? 'Rejected' : 'Submitted'; $statusClass = (int) $task_response->status === 2 ? 'is-danger' : 'is-success'; @endphp
Task {{ $task_key + 1 }}

{{ $task->title ?? 'Task details unavailable' }}

@if(!empty($task->description))

{!! $task->description !!}

@endif
{{ $statusLabel }} @if($task_response->updated_at) Submitted {{ \Carbon\Carbon::parse($task_response->updated_at)->format('d/m/Y h:i A') }} @endif @if(optional($task)->difficulty_level) {{ $task->difficulty_level->difficulty_level }} @endif @if(!empty($task->duration)) {{ $task->duration }} @endif
@forelse($task_response->wepTaskAnswers as $key=> $wepTaskAnswer)
{{ $key + 1 }}. {{ optional($wepTaskAnswer->taskQuestion)->question_text ?? 'Question details unavailable' }}
@if($wepTaskAnswer->selected_option)
Selected: {{ $wepTaskAnswer->selected_option }}
@endif @if($wepTaskAnswer->paragraph_response)
Answer: {!! nl2br(e($wepTaskAnswer->paragraph_response)) !!}
@endif @if(!$wepTaskAnswer->selected_option && !$wepTaskAnswer->paragraph_response && !$wepTaskAnswer->uploaded_file) No answer submitted @endif @if($wepTaskAnswer->uploaded_file) @endif
@empty
No answers found for this task.
@endforelse
@empty
No task responses found.
@endforelse
@endsection