<div class="ub-panel pb-question-view">
    <div class="head">
        @if(count($questionItem['answers'])>1)
            第 {{$questionItemNumber}} - {{$questionItemNumber+count($questionItem['answers'])-1}} 第 填空
        @else
            第 {{$questionItemNumber}} 题 填空
        @endif
    </div>
    <div class="body">

        <div class="question" data-question-type="fill">
            <div class="question">
                {!! $questionItem['question']['question'] !!}
            </div>
            <div class="answer-result">
                <div class="answer" data-answer>
                    <div class="answer-head"><i class="ub-icon-gavel"></i> 答案</div>
                    <div class="answer-body ub-html">
                        @foreach($questionItem['answers'] as $index=>$answer)
                            <p>{!! $answer['answer'] !!}</p>
                        @endforeach
                    </div>
                </div>
                <div class="my-answer">
                    @foreach($paperExamQuestions[$paperQuestionIndex]['answer'][$questionItemIndex] as $index=>$answer)
                        @if(\Module\Paper\Util\PaperExamUtil::isTextCorrect($questionItem['answers'][$index]['answer'],$answer))
                            <div class="ub-alert ub-alert-success">
                                <div class="label">我的答案{{$index+1}}</div>
                                {!! $answer !!}
                            </div>
                        @else
                            <div class="ub-alert ub-alert-danger">
                                <div class="label">我的答案{{$index+1}}</div>
                                {!! $answer !!}
                            </div>
                        @endif
                    @endforeach
                </div>
            </div>
        </div>

    </div>
</div>
