Feedback & Review Form
{{ csrf_field() }}
@php $totalScore = count($questions); $obtainScore = 0; @endphp @foreach ($questions as $question) @php $answer=''; $status=''; if(count($question['careerPathNotificationAchievementAnswer'])>0){ $answer=$question['careerPathNotificationAchievementAnswer'][0]->answer; $status = ($question['careerPathNotificationAchievementAnswer'][0]->score == 1)?'':''; $obtainScore+=$question['careerPathNotificationAchievementAnswer'][0]->score; } @endphp
Answer : {{$answer}} {!!$status!!} Correct Answer : {{(isset($question['options']) && (count($question['options']) > 0) ) ? $question['options'][0]->option_name : ''}}
@endForeach
Score : ({{$obtainScore}}/{{$totalScore}}) {{($totalScore > 0) ? round(($obtainScore/$totalScore)*100,2) : 0 }}%
{{--
--}} {{--
--}}
@if ($userAchievements) @if($userAchievements->need_admin_res == 1) @endif @endif