@php use Carbon\Carbon; @endphp @extends('panel.layouts.master') @section('content') @php $isActive = is_null($quizUser->end_at); @endphp
{{ $quiz->box->resource }} {{ $quiz->box->subject }}
@if(!$isActive)
@foreach($analyses as $item)
{{ $item->lesson }}
تعداد درست : {{ $item->correct_count }}
{{ $item->percent }}% درصد
تعداد غلط : {{ $item->incorrect_count }}
@endforeach
@endif @if($isActive)
@endif @csrf
پاسخنامه
@if($isActive) @else @endif @foreach($quiz->questions as $question) @php $quizQuestionUser = App\Models\QuizQuestionUser::where(['quiz_question_id' => $question->id, 'quiz_user_id' => $quizUser->id, 'user_id' => auth()->id()])->first(); @endphp
سوال {{ $question->number }}
{{ $question->lesson }}
{{ $question->subject }}
answer == '1' ? 'checked' : '' }} value="1">
answer == '2' ? 'checked' : '' }} value="2">
answer == '3' ? 'checked' : '' }} value="3">
answer == '4' ? 'checked' : '' }} value="4">
@if(!$loop->last)
@endif @endforeach
@if($isActive) @endif
@if($isActive)
@endif

{{ $quizUser->user->full_name }}

زمان آزمون : {{ $quiz->box->time }} دقیقه
تعداد سوالات : {{ $quiz->box->test_count }} سوال
00:00
@endsection @section('script') @endsection