@extends('companyAdmin.layouts.auth') @section('title') {{ env('APP_NAME') }} | Employee Challenge Response @endsection @section('styles') @endsection @section('content') @if ($errors->any())
@endif

Return to Messages

@if($employeeAnswerDetails->challenge_taking_type_id == $challengeTakingType['photoTakingChallenge']) @if($employeeAnswerDetails->is_approved == $challengeApprovedStatus['approved']) @elseif($employeeAnswerDetails->is_approved == $challengeApprovedStatus['rejected']) @elseif($employeeAnswerDetails->is_approved == $challengeApprovedStatus['pending'])
@csrf
@endif @endif

@if($employeeAnswerDetails->challenge_taking_type_id == $challengeTakingType['photoTakingChallenge']) {{ $employeeAnswerDetails->getChallenge->challenge_name??'' }} @else {{ $employeeAnswerDetails->getChallenge->challenge_question??'' }} @endif - {{ $employeeAnswerDetails->getChallenge->getChallengeCategory->name??'' }}

{{ $employeeAnswerDetails->getEmployee->name??'' }}

{{ $employeeAnswerDetails->submission_datetime }} ({{ $employeeAnswerDetails->submission_datetime }})

@if($employeeAnswerDetails->challenge_taking_type_id == $challengeTakingType['photoTakingChallenge']) @else
Question
{{ $employeeAnswerDetails->getChallenge->challenge_question??'' }}
@php $answerArr['option_number'] = 'Option '; $answerArr['option_value'] = ''; @endphp @if($employeeAnswerDetails->getChallenge->getChallengeOptions) @foreach($employeeAnswerDetails->getChallenge->getChallengeOptions as $key => $option) @if($employeeAnswerDetails->challenge_question_answer_id == $option->id) @php $answerArr['option_number'] .= $key+1; $answerArr['option_value'] = $option->answer??''; @endphp @endif
Option {{ $key+1 }} {{ $option->is_correct?' - Correct Answer':'' }}

{{ $option->answer??'' }}

@endforeach @endif
Submitted Answer

{{ $answerArr['option_number']??'' }}

{{ $answerArr['option_value']??'' }}

@if($employeeAnswerDetails->is_correct_answer) Submitted Answer is correct @else Submitted Answer is wrong @endif @endif @if($employeeAnswerDetails->challenge_taking_type_id == $challengeTakingType['photoTakingChallenge'])
@csrf

Reply

@endif @if($messageThreads)
Messages:
@foreach($messageThreads as $key => $thread) @if($thread->sender_type == $userRoleType['companyadmin'])
{{ $thread->message }}

{{ $thread->created_at }}

 

@elseif($thread->sender_type == $userRoleType['employee'])
@if(isset($thread['message'])) {{ $thread['message'] }} @endif @if(isset($thread['image'])) @endif

{{ $thread->created_at }}

 

@endif @endforeach
@endif @if(isset($message_array)) @if(count($message_array) >= 3)
Load more
Show less
@endif @endif
@endsection @section('scripts') @endsection