@if($type == 'creat')
{{ empty($question->questions->pool_name) ? 'Undefined Pool' : ucfirst($question->questions->pool_name->name) }}
{{ empty($question->questions->topic_name) ? 'No Topic' : ucfirst($question->questions->topic_name->name) }}
@if($question->questions->question_type != 2)
{{ empty($question->questions->difficulty_name) ? 'Undefined Difficulty' : ucfirst($question->questions->difficulty_name->difficulty_level) }}
@endif
@php $string = str_replace(' ',' ',strip_tags(str_replace(array("\r\n", "\r", "\n", "\t"), "
", $question->questions->question),'')); if (strlen($string) > 500) { $stringCut = substr($string, 0, 500); $endPoint = strrpos($stringCut, ' />'); if ($endPoint == false) { $endPoint = strrpos($stringCut, ' '); $pointer = $endPoint; } else { $pointer = $endPoint+3; } $string = $endPoint? substr($stringCut, 0, $pointer) : substr($stringCut, 0); if (strlen($string) > 400) { $string = strip_tags($string); } if(strlen($string) < 1) { $string = 'Click To View Question'; } $string .= '...'; } @endphp @if(empty($string)) No Question Data @else {!! $string !!} @endif
@if($question->questions->question_type == 4)
@if(isset($pro_lang_data[$question->questions->id])) @foreach($pro_lang_data[$question->questions->id] as $languages) {{ $languages ?? ''}} @endforeach @endif
@endif
@elseif($type == 'load') @foreach($question_list as $question)
{{ empty($question->questions->pool_name) ? 'Undefined Pool' : ucfirst($question->questions->pool_name->name) }}
{{ empty($question->questions->topic_name) ? 'No Topic' : ucfirst($question->questions->topic_name->name) }}
@if($question->questions->question_type != 2)
{{ empty($question->questions->difficulty_name) ? 'Undefined Difficulty' : ucfirst($question->questions->difficulty_name->difficulty_level) }}
@endif
@php $string = str_replace(' ',' ',strip_tags(str_replace(array("\r\n", "\r", "\n", "\t"), "
", $question->questions->question),'')); if (strlen($string) > 500) { $stringCut = substr($string, 0, 500); $endPoint = strrpos($stringCut, ' />'); if ($endPoint == false) { $endPoint = strrpos($stringCut, ' '); $pointer = $endPoint; } else { $pointer = $endPoint+3; } $string = $endPoint? substr($stringCut, 0, $pointer) : substr($stringCut, 0); if (strlen($string) > 400) { $string = strip_tags($string); } if(strlen($string) < 1) { $string = 'Click To View Question'; } $string .= '...'; } @endphp @if(empty($string)) No Question Data @else {!! $string !!} @endif
@if($question->questions->question_type == 4)
@if(isset($pro_lang_data[$question->questions->id])) @foreach($pro_lang_data[$question->questions->id] as $languages) {{ $languages ?? ''}} @endforeach @endif
@endif
@endforeach @endif