@php $mark_update = true; $q_type = $answer_details->getQMSQuestionType->question_type; //$answer = $answer_details->exam_answer; $answer = $answer_content; if(empty($answer)) { $mark_update = false; } function getextension($path){ $extension = pathinfo($path, PATHINFO_EXTENSION); $explode = explode('?',$extension); return $explode[0]; } $image_count = []; @endphp