logo

SSL Wireless 93/B, New Eskaton, Dhaka

Name: {{ $trSurpriseParticipant->employee->user->name }}

Total Question: {{ $trSurpriseParticipant->trSurpriseResponses()->totalQuestion()}}
Correct Answer: {{ $trSurpriseParticipant->trSurpriseResponses()->correctAnswer() }}
Theory Answer: {{ $trSurpriseParticipant->trSurpriseResponses()->theoryQuestion() }}
Total Marks: {{ $trSurpriseParticipant->trSurpriseResponses()->totalMarks() }}
Result: {{ +$trSurpriseParticipant->obtained }} ({{ +$trSurpriseParticipant->percentage }}%)

Questions

@foreach($trSurpriseParticipant->trSurpriseResponses as $surpriseResponse)
{{ $loop->iteration }}/{{ $loop->count }} {{ $surpriseResponse->question ?? '' }} @if($surpriseResponse->type == 'Theory') {!! $surpriseResponse->is_evaluated ? '(Evaluated)' : '(Not Evaluated)' !!} @else {!! $surpriseResponse->is_correct ? '(Correct)' : '(Wrong)' !!} @endif
@if($surpriseResponse->type == 'Multiselect') @foreach($surpriseResponse->options as $options)

@if(in_array($options, $surpriseResponse->user_answer)) check @else uncheck @endif {{ $options }}

@endforeach @elseif($surpriseResponse->type == 'Radio') @foreach($surpriseResponse->options as $option)

@if(in_array($option, $surpriseResponse->user_answer)) uncheck @else uncheck @endif {{ $option }}

@endforeach @elseif($surpriseResponse->type == 'Theory')

{{ head($surpriseResponse->user_answer) }}

@endif
@endforeach