@extends('backend.master') @section('mainContent') {!! generateBreadcrumb() !!}
@if (isset($online_exam)) @method('PUT') @endif @csrf

@if (isset($online_exam)) {{ __('common.Edit') }} @else {{ __('common.Add') }} @endif {{ __('quiz.Online Quiz') }}

@php $LanguageList = getLanguageList(); @endphp
@if (isModuleActive('FrontendMultiLang')) @endif
@foreach ($LanguageList as $key => $language)
has('title') ? ' autofocus' : '' }} class="primary_input_field name{{ $errors->has('title') ? ' is-invalid' : '' }}" type="text" name="title[{{ $language->code }}]" autocomplete="off" @if (auth()->user()->language_code == $language->code) required @endif value="{{ isset($online_exam) ? $online_exam->getTranslation('title', $language->code) : '' }}"> @if ($errors->has('title')) {{ $errors->first('title') }} @endif
@if ($errors->has('instruction')) {{ $errors->first('instruction') }} @endif
@endforeach
@if ($errors->has('class')) {{ $errors->first('class') }} @endif
@if ($errors->has('sub_category')) {{ $errors->first('sub_category') }} @endif
@if ($errors->has('group_id')) {{ $errors->first('group_id') }} @endif
has('title') ? ' percentage' : '' }} class="primary_input_field name{{ $errors->has('percentage') ? ' is-invalid' : '' }}" type="number" name="percentage" autocomplete="off" min="1" onkeyup="checkMin(this)" value="{{ isset($online_exam) ? $online_exam->percentage : old('percentage',0) }}"> {{-- --}} @if ($errors->has('percentage')) {{ $errors->first('percentage') }} @endif
@if (!isset($online_exam))
@endif
@php if (isset($online_exam)) { $type = $online_exam->question_time_type; $question_time = $online_exam->question_time; $question_review = $online_exam->question_review; $show_result_each_submit = $online_exam->show_result_each_submit; $random_question = $online_exam->random_question; $multiple_attend = $online_exam->multiple_attend; $show_ans_with_explanation = $online_exam->show_ans_with_explanation; $show_score_result = $online_exam->show_score_result; $losing_focus_acceptance_number = $online_exam->losing_focus_acceptance_number; $losing_type = $online_exam->losing_type; $show_ans_sheet = $online_exam->show_ans_sheet; $show_correct_ans_in_ans_sheet = $online_exam->show_correct_ans_in_ans_sheet; $show_only_wrong_ans_in_ans_sheet = $online_exam->show_only_wrong_ans_in_ans_sheet; $show_total_correct_answer = $online_exam->show_total_correct_answer; } else { $type = $quiz_setup->set_per_question_time == 1 ? 0 : 1; $question_time = $quiz_setup->set_per_question_time == 1 ? $quiz_setup->time_per_question : $quiz_setup->time_total_question; $question_review = $quiz_setup->question_review; $show_result_each_submit = $quiz_setup->show_result_each_submit; $random_question = $quiz_setup->random_question; $multiple_attend = $quiz_setup->multiple_attend; $show_ans_with_explanation = $quiz_setup->show_ans_with_explanation; $show_score_result = $quiz_setup->show_score_result; $losing_focus_acceptance_number = $quiz_setup->losing_focus_acceptance_number; $losing_type = $quiz_setup->losing_type; $show_ans_sheet = $quiz_setup->show_ans_sheet; $show_correct_ans_in_ans_sheet = $quiz_setup->show_correct_ans_in_ans_sheet; $show_only_wrong_ans_in_ans_sheet = $quiz_setup->show_only_wrong_ans_in_ans_sheet; $show_total_correct_answer = $quiz_setup->show_total_correct_answer; } @endphp
@if ($errors->has('question_time')) {{ $errors->first('question_time') }} @endif
  • {{ trans('quiz.Note') }} : {{ trans('quiz.If you enable this option, show result: after each submit will disabled') }}
@php if ($question_review != 1) { $show_result_each = ''; } else { $show_result_each = 'style=display:none'; } @endphp
  • {{ trans('quiz.See Answer Sheet') }}
  • {{ trans('quiz.See Score Result') }}
@if(currentTheme()=='infixlmstheme')
  • {{trans('quiz.Show Correct Ans In Answer Sheet')}}
  • {{trans('quiz.Show Only Wrong Ans In Answer Sheet')}}
  • {{ _trans('quiz.Show Total Correct Answer') }}
@endif
  • {{ trans('quiz.Losing focus acceptance') }}
@php $tooltip = ''; if (!permissionCheck('set-quiz.store')) { $tooltip = 'You have no permission to add'; } @endphp

{{ __('quiz.Online Quiz List') }}

@if (session()->has('message-success-delete') != '' || session()->get('message-danger-delete') != '') @endif @foreach ($online_exams as $key => $online_exam) @endforeach
@if (session()->has('message-success-delete'))
{{ session()->get('message-success-delete') }}
@elseif(session()->has('message-danger-delete'))
{{ session()->get('message-danger-delete') }}
@endif
{{ __('common.SL') }} {{ __('coupons.Title') }} {{ __('quiz.Group') }} {{ __('quiz.Category') }} {{ __('common.Date') }} {{ __('common.Status') }} {{ __('common.Action') }}
{{ ++$key }} {{ $online_exam->title }} {{ $online_exam->group->title }} {{ @$online_exam->category->name }} /{{ @$online_exam->subCategory->name }} {{ showDate($online_exam->created_at) }} @if ($online_exam->status == 0) @else @endif
@endsection @push('scripts') @endpush