logo

SSL Wireless 93/B, New Eskaton, Dhaka

Name: {{ $trTestParticipant->selectedCandidate->candidate->user->name }}

@if(isset($trTestParticipant->selectedCandidate->jobs->jobTitle->name)) @endif
Job Title: {{ $trTestParticipant->selectedCandidate->jobs->jobTitle->name }}
Total Question: {{ $trTestParticipant->trTestResponses()->totalQuestion()}}
Correct Answer: {{ $trTestParticipant->trTestResponses()->correctAnswer() }}
Theory Answer: {{ $trTestParticipant->trTestResponses()->theoryQuestion() }}
Total Marks: {{ $trTestParticipant->trTestResponses()->totalMarks() }}
Result: {{ +$trTestParticipant->obtained }} ({{ +$trTestParticipant->percentage }}%)

Questions

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

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

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

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

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

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

@endif
@endforeach