@php if (!function_exists('convertImageBase64')) { function convertImageBase64($img_url,$format='jpeg') { $image_return = 'data:image/'.$format.';base64,'.(base64_encode(file_get_contents($img_url))); return $image_return; } } @endphp Candidate Transcript

Candidate Transcript

@if($is_masked == 0) @endif
Name:{{$get_candidate_list->pro_candidate->first_name.' '.$get_candidate_list->pro_candidate->last_name}}
Assessment Name:{{$ass_detail->name}}
Assessment Date:{{\Carbon\carbon::parse($get_attempt_date->end_date)->format('d-m-Y')}}
Overall Score:{{ $overall_score ? $overall_score : 0}}
Total time:{{ $hours . " Hours : " . $minutes . " Minutes : " . $seconds . " Seconds"}}
@if(count($excelData_sheet_remove_empty) > 0) @foreach($excelData_sheet_remove_empty as $index=>$questions) @php $option_i = 1; $loadi = 0; @endphp
Question Type: {{$questions['Question Type']}}
Dificulty Level: {{$questions['Difficulty Level']}}
{!! html_entity_decode($questions['Questions'],ENT_QUOTES, 'UTF-8') !!}
@while(isset($questions['Options '.$option_i]) && !empty($questions['Options '.$option_i])) @if($loadi % 2 == 0) @endif @php $option_i = $option_i+1; $loadi = $loadi+1; @endphp @if($loadi % 2 == 0) @endif @endwhile
{{$option_i}}.
@php $setValue = strip_tags($questions['Options '.$option_i]); $extension = pathinfo(parse_url($setValue, PHP_URL_PATH), PATHINFO_EXTENSION); if($extension == 'mp3'){ $OptionName = 'Audio File'; } elseif($extension == 'mp4'){ $OptionName = 'Video File'; } else{ $OptionName = $questions['Options '.$option_i]; } @endphp

{!! $OptionName !!}

@php $padding_count = 0; @endphp
@if($questions['Question Type']=='Essay' || $questions['Question Type']=='Subjective')
Candidate Answer
@if(!empty($questions['Candidate Answer'])) @if(is_array($questions['Candidate Answer'])) @foreach($questions['Candidate Answer'] as $correctAns) @php $candidateAns = \HireMeeHelper::getCandidateAnswerContent(trim($correctAns)); @endphp {!! $candidateAns !!} @endforeach @else @php $candidateAns = \HireMeeHelper::getCandidateAnswerContent(trim($questions['Candidate Answer'])); @endphp {!! trim($questions['Candidate Answer'])=='' ? 'No text typed' : $candidateAns !!} @endif @else Not Answered @endif
@elseif($questions['Question Type']=='MCQ-weightages')
Candidate Answer
@if(!empty($questions['Candidate_Answer_Options'])) @if(is_array($questions['Candidate_Answer_Options'])) {{ implode(',',$questions['Candidate_Answer_Options']) }} @else {!! trim($questions['Candidate_Answer_Options'])=='' ? 'No option choosen' : $questions['Candidate_Answer_Options'] !!} @php $padding_count = substr_count($questions['Candidate_Answer_Options'],'
'); @endphp @endif @else Not Answered @endif
@else
Candidate Answer @if(!empty($questions['Candidate_Answer_Options'])) @php if($questions['Question Type']=='MCQ') { $class = (isset($questions['Is_Correct_Answer']) && $questions['Is_Correct_Answer'] == true) ? "btncandidateanswer" : "btnwronganswer"; } elseif($questions['Question Type']=='MCQ-weightages') { $class = "btncandidateanswer_essay"; } else{ $class = "btncandidateanswer"; } @endphp @if(is_array($questions['Candidate_Answer_Options'])) {{ implode(',',$questions['Candidate_Answer_Options']) }} @else {!! trim($questions['Candidate_Answer_Options'])=='' ? 'No option choosen' : $questions['Candidate_Answer_Options'] !!} @php $padding_count = substr_count($questions['Candidate_Answer_Options'],'
'); @endphp @endif @else Not Answered @endif
@if(!empty($questions['Correct Answers']) && $questions['Question Type']!='MCQ-weightages')
Correct Answer @if(!empty($questions['Correct Answers'])) @if(is_array($questions['Correct Answers'])) @foreach($questions['Correct Answers'] as $correctAns) {!! $correctAns !!}
@endforeach
@else {!! $questions['Correct Answers'] !!} @endif @endif
@endif
@endif
@php if($questions['Question Type']=='Essay' || $questions['Question Type']=='Subjective'){ $footer_block_style = "width: 100%!important;padding: 20px 10px 20px 10px;"; } else{ $footer_block_style = "width: 100%!important;padding: 50px 10px 20px 10px;margin-top: 5px;"; } if($padding_count>0) { $pad_top_value = 100*$padding_count; $footer_block_style = "width: 100%!important;padding: ".$pad_top_value."px 10px 20px 10px;margin-top: 5px;"; } @endphp
Maximum Score: {{$questions['Maximum Marks']}} Obtained Score: {{$questions['Obtained Score']}} Time Spent: {{$questions['Time Spent by Candidate']}}
@endforeach @endif