관리-도구
편집 파일: dc6531eaf2df3c653815ea2dd864c7e8.php
<?php if (isset($component)) { $__componentOriginal4ea3ceba530d619a977e9c813ff095c4 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal4ea3ceba530d619a977e9c813ff095c4 = $attributes; } ?> <?php $component = Modules\LMS\View\Components\Frontend\Layout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('frontend-layout'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Modules\LMS\View\Components\Frontend\Layout::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes([]); ?> <?php if (isset($component)) { $__componentOriginal633e9714cbfc155a1e1afb58682cfb8f = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal633e9714cbfc155a1e1afb58682cfb8f = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::breadcrumbs.breadcrumb-one','data' => ['pageTitle' => 'Quiz','pageRoute' => '#','pageName' => 'Quiz']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::breadcrumbs.breadcrumb-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['pageTitle' => 'Quiz','pageRoute' => '#','pageName' => 'Quiz']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal633e9714cbfc155a1e1afb58682cfb8f)): ?> <?php $attributes = $__attributesOriginal633e9714cbfc155a1e1afb58682cfb8f; ?> <?php unset($__attributesOriginal633e9714cbfc155a1e1afb58682cfb8f); ?> <?php endif; ?> <?php if (isset($__componentOriginal633e9714cbfc155a1e1afb58682cfb8f)): ?> <?php $component = $__componentOriginal633e9714cbfc155a1e1afb58682cfb8f; ?> <?php unset($__componentOriginal633e9714cbfc155a1e1afb58682cfb8f); ?> <?php endif; ?> <?php $quiz = $data['quiz']; $userQuiz = $data['userExam']; $questions = $data['questions']; $quizStart = $start ?: ($again ?: false); ?> <input type="hidden" name="course_id" id="courseId" value="<?php echo e($data['course_id']); ?>"> <input type="hidden" name="topic_id" id="topicId" value="<?php echo e($data['topic_id']); ?>"> <input type="hidden" name="chapter_id" id="chapterId" value="<?php echo e($data['chapter_id']); ?>" /> <input type="hidden" id="start-quiz" value="<?php echo e($quizStart); ?>" /> <!-- START INNER CONTENT AREA --> <div class="container"> <!-- QUIZ HEADER --> <div class="flex !justify-end sm:!justify-between gap-4"> <div class="hidden sm:block grow"> <h2 class="area-title text-2xl"> <?php echo e($quiz?->topic?->chapter?->course?->title ?? ''); ?></h2> <ul class="flex items-center flex-wrap gap-1.5 *:flex-center *:gap-1.5 leading-none mt-4"> <?php if($quiz?->topic?->chapter?->title): ?> <li class="text-lg leading-none font-semibold text-heading/90 after:font-remix after:flex-center after:font-thin after:text-heading/60 after:size-5 after:content-['\f2e5'] rtl:after:content-['\f2e3'] after:translate-y-[1.4px] last:after:hidden"> <?php echo e($quiz?->topic?->chapter?->title ?? ''); ?> </li> <?php endif; ?> <li class="text-lg leading-none font-semibold text-primary after:font-remix after:flex-center after:font-thin after:text-heading/60 after:size-5 after:content-['\f2e5'] rtl:after:content-['\f2e3'] after:translate-y-[1.4px] last:after:hidden"> <?php echo e($quiz->title); ?> </li> </ul> </div> <div class="shrink-0"> <?php $actionRoute = route('play.course', [ 'slug' => $quiz?->topic?->chapter?->course?->slug, 'topic_id' => $quiz?->topic?->id ?? null, 'type' => $type, 'chapter_id' => $quiz?->topic?->chapter?->id ?? null, ]); ?> <a href="<?php echo e($actionRoute); ?>" class="btn b-solid btn-primary-solid" aria-label="Go to Course Video"> <i class="ri-arrow-left-line rtl:before:content-['\ea6c']"></i> <?php echo e(translate('Course Video')); ?> </a> </div> </div> <!-- QUIZ OVERVIEW --> <div class="quiz-overview mt-10"> <div class="grid grid-cols-12 gap-6"> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="41" height="24" viewBox="0 0 41 24" fill="none"> <path d="M20.0339 9.53995C21.8811 9.53995 23.6967 10.026 25.2839 10.9458C25.7041 11.1894 26.1088 11.4635 26.4919 11.7623L20.778 16.1381C20.6354 16.111 20.4913 16.0904 20.3457 16.0793C20.2408 16.0713 20.1358 16.0668 20.0339 16.0668C17.8467 16.0668 16.0673 17.8462 16.0673 20.0334C16.0673 22.2205 17.8467 24 20.0339 24C22.2211 24 24.0005 22.2205 24.0005 20.0334C24.0005 19.9305 23.9965 19.8255 23.9879 19.7216C23.9764 19.576 23.9563 19.4319 23.9292 19.2893L28.305 13.5758C29.741 15.414 30.5278 17.6906 30.5278 20.0339C30.5278 20.4496 30.8652 20.787 31.281 20.787H39.3146C39.7304 20.787 40.0678 20.4496 40.0678 20.0339C40.0678 17.3296 39.5381 14.7061 38.4932 12.2357C37.484 9.85025 36.0399 7.70778 34.2002 5.86807C32.3605 4.02837 30.218 2.58382 27.8326 1.5751C25.3617 0.529718 22.7382 0 20.0339 0C17.3296 0 14.7061 0.529718 12.2357 1.57459C9.85025 2.58382 7.70778 4.02787 5.86807 5.86757C4.02837 7.70727 2.58382 9.84975 1.5751 12.2352C0.529718 14.7061 0 17.3296 0 20.0339C0 20.4496 0.337413 20.787 0.753154 20.787H8.78679C9.20254 20.787 9.53995 20.4496 9.53995 20.0339C9.53995 16.3008 11.5494 12.8187 14.7844 10.9458C16.3716 10.026 18.1867 9.53995 20.0339 9.53995ZM20.0339 22.4942C18.6772 22.4942 17.5736 21.3906 17.5736 20.0339C17.5736 18.6772 18.6772 17.5736 20.0339 17.5736C20.0977 17.5736 20.1619 17.5761 20.2292 17.5816C21.4232 17.6745 22.3938 18.6451 22.4867 19.8396C22.4917 19.9049 22.4942 19.9706 22.4942 20.0344C22.4942 21.3906 21.3906 22.4942 20.0339 22.4942ZM38.5464 19.2807H32.0105C31.8504 16.7401 30.8838 14.3054 29.2475 12.3462L31.5471 9.34363C31.7314 9.10312 31.7103 8.78579 31.4959 8.57189C31.282 8.358 30.9647 8.33691 30.7242 8.52068L27.7216 10.8203C27.3887 10.5426 27.0397 10.2816 26.6777 10.04L29.9444 4.38587C34.9212 7.54961 38.2944 13.0205 38.5464 19.2807ZM20.0339 1.50631C23.1389 1.50631 26.0682 2.27452 28.6414 3.6302L25.3743 9.28538C23.7238 8.46444 21.8927 8.03364 20.0339 8.03364C18.1751 8.03364 16.3439 8.46495 14.694 9.28538L11.4263 3.6302C13.9996 2.27452 16.9289 1.50631 20.0339 1.50631ZM9.68807 13.9504C8.73307 15.5712 8.17523 17.4004 8.05724 19.2807H1.52137C1.77343 13.0205 5.14655 7.54961 10.1234 4.38587L13.3901 10.04C11.8813 11.0453 10.6104 12.3849 9.68807 13.9504Z" fill="#5F3EED"></path> </svg>'; ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','title' => ''.e($quiz->pass_mark).'/'.e($quiz->total_mark).'','description' => 'Minimum Passing Score']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','title' => ''.e($quiz->pass_mark).'/'.e($quiz->total_mark).'','description' => 'Minimum Passing Score']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="31" height="24" viewBox="0 0 31 24" fill="none"> <path d="M15.6293 14.6576C17.059 13.7062 18.1445 12.32 18.7253 10.7039C19.3061 9.08786 19.3514 7.32777 18.8545 5.68397C18.3575 4.04017 17.3447 2.59995 15.9659 1.57632C14.587 0.552687 12.9153 0 11.1981 0C9.4808 0 7.80911 0.552687 6.43027 1.57632C5.05142 2.59995 4.03863 4.04017 3.54168 5.68397C3.04473 7.32777 3.09002 9.08786 3.67084 10.7039C4.25166 12.32 5.33717 13.7062 6.76683 14.6576C4.84314 15.1141 3.12928 16.2053 1.90162 17.7551C0.673969 19.3049 0.00408621 21.223 0 23.2001C0 23.4123 0.0842711 23.6157 0.234274 23.7657C0.384278 23.9157 0.587726 24 0.799862 24H21.5963C21.8084 24 22.0119 23.9157 22.1619 23.7657C22.3119 23.6157 22.3961 23.4123 22.3961 23.2001C22.3921 21.223 21.7222 19.3049 20.4945 17.7551C19.2669 16.2053 17.553 15.1141 15.6293 14.6576ZM4.79917 8.00276C4.79917 6.73717 5.17446 5.50001 5.87758 4.44772C6.5807 3.39542 7.58007 2.57526 8.74932 2.09094C9.91857 1.60663 11.2052 1.47991 12.4464 1.72681C13.6877 1.97371 14.8279 2.58315 15.7228 3.47805C16.6177 4.37295 17.2271 5.51313 17.474 6.75439C17.7209 7.99566 17.5942 9.28226 17.1099 10.4515C16.6256 11.6208 15.8054 12.6201 14.7531 13.3232C13.7008 14.0264 12.4637 14.4017 11.1981 14.4017C9.50098 14.4017 7.87339 13.7275 6.67337 12.5275C5.47334 11.3274 4.79917 9.69985 4.79917 8.00276ZM1.59972 22.4003C1.79729 20.6328 2.64211 19.0011 3.97133 17.8196C5.30055 16.6381 7.02008 15.9904 8.79848 16.0014H13.5977C15.3761 15.9904 17.0956 16.6381 18.4248 17.8196C19.754 19.0011 20.5988 20.6328 20.7964 22.4003H1.59972Z" fill="#5F3EED"/> <path d="M29.5972 11.2034H27.1976V8.80377C27.1976 8.59163 27.1133 8.38818 26.9633 8.23818C26.8133 8.08818 26.6099 8.00391 26.3977 8.00391C26.1856 8.00391 25.9822 8.08818 25.8322 8.23818C25.6822 8.38818 25.5979 8.59163 25.5979 8.80377V11.2034H23.1983C22.9862 11.2034 22.7827 11.2876 22.6327 11.4376C22.4827 11.5876 22.3984 11.7911 22.3984 12.0032C22.3984 12.2154 22.4827 12.4188 22.6327 12.5688C22.7827 12.7188 22.9862 12.8031 23.1983 12.8031H25.5979V15.2027C25.5979 15.4148 25.6822 15.6183 25.8322 15.7683C25.9822 15.9183 26.1856 16.0025 26.3977 16.0025C26.6099 16.0025 26.8133 15.9183 26.9633 15.7683C27.1133 15.6183 27.1976 15.4148 27.1976 15.2027V12.8031H29.5972C29.8093 12.8031 30.0128 12.7188 30.1628 12.5688C30.3128 12.4188 30.3971 12.2154 30.3971 12.0032C30.3971 11.7911 30.3128 11.5876 30.1628 11.4376C30.0128 11.2876 29.8093 11.2034 29.5972 11.2034Z" fill="#5F3EED"/> </svg>'; ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','title' => ' '.e($userQuiz->attempt_number ?? 0).'/'.e($quiz->total_retake).'','description' => 'Available Attempts']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','title' => ' '.e($userQuiz->attempt_number ?? 0).'/'.e($quiz->total_retake).'','description' => 'Available Attempts']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="26" height="30" viewBox="0 0 26 30" fill="none"> <path fill-rule="evenodd" clip-rule="evenodd" d="M17.1152 13.8374L15.4136 17.5752H12.9272L11.2242 13.8344C11.0256 13.4046 10.9249 12.9446 10.9249 12.4672C10.9249 10.6719 12.3808 9.21132 14.1704 9.21132C15.9599 9.21132 17.4159 10.6719 17.4159 12.4672C17.4159 12.9446 17.3151 13.4046 17.1152 13.8374ZM15.2058 19.466C15.2058 19.9786 14.7901 20.3956 14.2791 20.3956H14.0616C13.5507 20.3956 13.135 19.9786 13.135 19.466V18.7517H15.2058V19.466ZM14.1704 8.03485C11.7341 8.03485 9.75217 10.0232 9.75217 12.4672C9.75217 13.1167 9.88944 13.7431 10.1588 14.3262L11.9623 18.2879V19.466C11.9623 20.6273 12.9041 21.572 14.0616 21.572H14.2791C15.4367 21.572 16.3785 20.6273 16.3785 19.466V18.2879L18.1806 14.3291C18.4513 13.7431 18.5886 13.1167 18.5886 12.4672C18.5886 10.0232 16.6066 8.03485 14.1704 8.03485ZM20.2505 22.2604C20.1623 22.3662 20.114 22.4997 20.114 22.6377V28.8235H9.72148V23.7323C9.72148 23.5615 9.64748 23.3991 9.51872 23.2874C9.38989 23.1757 9.2195 23.1254 9.05062 23.1502L5.79302 23.6258C5.42743 23.6617 5.0766 23.5451 4.804 23.2971C4.52888 23.0466 4.37901 22.7035 4.382 22.3308C4.38223 22.3004 4.38012 22.2699 4.37566 22.2398L3.772 18.1526C3.72937 17.8642 3.48263 17.6506 3.19197 17.6506H2.04598C1.73269 17.6506 1.45153 17.4885 1.29397 17.2169C1.1363 16.9453 1.1346 16.6199 1.28934 16.3466L3.66136 12.1568C3.74374 12.0498 3.78813 11.9158 3.78344 11.7769C3.77881 11.6401 3.77664 11.5272 3.77664 11.4216C3.77664 5.77241 8.35801 1.17647 13.9892 1.17647C19.741 1.17647 24.6003 5.86818 24.6003 11.4216C24.6003 14.7306 22.8116 19.1877 20.2505 22.2604ZM22.2286 3.33512C20.0081 1.21559 17.005 0 13.9892 0C7.71131 0 2.60391 5.12371 2.60391 11.4216C2.60391 11.4905 2.60467 11.5614 2.60637 11.638L0.269594 15.7656C-0.0936579 16.4073 -0.089612 17.1711 0.280442 17.8088C0.650438 18.4464 1.31045 18.8271 2.04598 18.8271H2.68606L3.20939 22.3702C3.21748 23.0545 3.50972 23.7075 4.01599 24.1683C4.53428 24.6401 5.2307 24.8682 5.92648 24.7947C5.93416 24.7939 5.94184 24.7929 5.94941 24.7918L8.54876 24.4123V29.4118C8.54876 29.7366 8.81127 30 9.13512 30H20.7004C21.0242 30 21.2867 29.7366 21.2867 29.4118V22.8491C23.9355 19.5895 25.773 14.9223 25.773 11.4216C25.773 8.38865 24.5143 5.51676 22.2286 3.33512ZM14.1704 6.29786C14.4942 6.29786 14.7567 6.03451 14.7567 5.70963V4.23751C14.7567 3.91263 14.4942 3.64928 14.1704 3.64928C13.8466 3.64928 13.584 3.91263 13.584 4.23751V5.70963C13.584 6.03451 13.8466 6.29786 14.1704 6.29786ZM20.0913 6.15615C19.8605 5.92821 19.4891 5.93132 19.2621 6.16285L18.2329 7.21209C18.0058 7.44368 18.0087 7.81609 18.2396 8.04397C18.3538 8.15674 18.5023 8.21291 18.6508 8.21291C18.8025 8.21291 18.954 8.15427 19.0688 8.03726L20.098 6.98803C20.3251 6.7565 20.3222 6.38403 20.0913 6.15615ZM21.8213 11.5541H20.354C20.0301 11.5541 19.7676 11.8174 19.7676 12.1423C19.7676 12.4672 20.0301 12.7306 20.354 12.7306H21.8213C22.1451 12.7306 22.4077 12.4672 22.4077 12.1423C22.4077 11.8174 22.1451 11.5541 21.8213 11.5541ZM10.1079 7.2121L9.07862 6.16287C8.85146 5.93139 8.48023 5.92822 8.24944 6.15616C8.01859 6.38404 8.0156 6.75645 8.2427 6.98804L9.27194 8.03728C9.38675 8.15428 9.53827 8.21292 9.68996 8.21292C9.83837 8.21292 9.98695 8.15669 10.1012 8.04398C10.332 7.8161 10.335 7.44369 10.1079 7.2121ZM7.98681 11.5541H6.51944C6.19559 11.5541 5.93308 11.8174 5.93308 12.1423C5.93308 12.4672 6.19559 12.7306 6.51944 12.7306H7.98681C8.31061 12.7306 8.57318 12.4672 8.57318 12.1423C8.57318 11.8174 8.31061 11.5541 7.98681 11.5541Z" fill="#5F3EED"/> </svg>'; ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','title' => ''.e($quiz->questions->count() ?? 0).'','description' => 'Quiz Questions']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','title' => ''.e($quiz->questions->count() ?? 0).'','description' => 'Quiz Questions']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"> <path d="M14 0C10.2864 0 6.72597 1.47467 4.10069 4.10069C1.47452 6.72571 0 10.2864 0 14C0 17.7136 1.47467 21.274 4.10069 23.8993C6.72571 26.5255 10.2864 28 14 28C17.7136 28 21.274 26.5253 23.8993 23.8993C26.5255 21.2743 28 17.7136 28 14C27.9953 10.2876 26.5195 6.72926 23.8945 4.10547C21.2707 1.48046 17.7124 0.00477867 14 0ZM14 26.1333C10.7825 26.1333 7.69545 24.8547 5.4202 22.5798C3.1452 20.3048 1.86667 17.2178 1.86667 14C1.86667 10.7822 3.14532 7.69545 5.4202 5.4202C7.69521 3.1452 10.7822 1.86667 14 1.86667C17.2178 1.86667 20.3046 3.14532 22.5798 5.4202C24.8548 7.69521 26.1333 10.7822 26.1333 14C26.1298 17.2166 24.85 20.3013 22.575 22.575C20.3012 24.85 17.2166 26.1298 14 26.1333ZM13.9333 14.0667H20.4667V15.9333H12.0667V5.66667H13.9333V14.0667Z" fill="#5F3EED"/> </svg>'; $attempt_number = $userQuiz->attempt_number ?? 0; $duration = $attempt_number == $quiz->total_retake ? 0 : ($userQuiz ? $quiz->duration : 0); $time = (!isInstructor() && $start ?: $again) ? $duration : ''; ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','cartType' => ''.e($userQuiz ? 'time-duration' : '').'','title' => ''.e($quiz->duration . translate('min') ?? '00:00:00').'','description' => 'Time Left','class' => 'text-danger','timeCount' => ''.e($time ?? '').'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','cartType' => ''.e($userQuiz ? 'time-duration' : '').'','title' => ''.e($quiz->duration . translate('min') ?? '00:00:00').'','description' => 'Time Left','class' => 'text-danger','timeCount' => ''.e($time ?? '').'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="41" height="24" viewBox="0 0 41 24" fill="none"> <path d="M20.0339 9.53995C21.8811 9.53995 23.6967 10.026 25.2839 10.9458C25.7041 11.1894 26.1088 11.4635 26.4919 11.7623L20.778 16.1381C20.6354 16.111 20.4913 16.0904 20.3457 16.0793C20.2408 16.0713 20.1358 16.0668 20.0339 16.0668C17.8467 16.0668 16.0673 17.8462 16.0673 20.0334C16.0673 22.2205 17.8467 24 20.0339 24C22.2211 24 24.0005 22.2205 24.0005 20.0334C24.0005 19.9305 23.9965 19.8255 23.9879 19.7216C23.9764 19.576 23.9563 19.4319 23.9292 19.2893L28.305 13.5758C29.741 15.414 30.5278 17.6906 30.5278 20.0339C30.5278 20.4496 30.8652 20.787 31.281 20.787H39.3146C39.7304 20.787 40.0678 20.4496 40.0678 20.0339C40.0678 17.3296 39.5381 14.7061 38.4932 12.2357C37.484 9.85025 36.0399 7.70778 34.2002 5.86807C32.3605 4.02837 30.218 2.58382 27.8326 1.5751C25.3617 0.529718 22.7382 0 20.0339 0C17.3296 0 14.7061 0.529718 12.2357 1.57459C9.85025 2.58382 7.70778 4.02787 5.86807 5.86757C4.02837 7.70727 2.58382 9.84975 1.5751 12.2352C0.529718 14.7061 0 17.3296 0 20.0339C0 20.4496 0.337413 20.787 0.753154 20.787H8.78679C9.20254 20.787 9.53995 20.4496 9.53995 20.0339C9.53995 16.3008 11.5494 12.8187 14.7844 10.9458C16.3716 10.026 18.1867 9.53995 20.0339 9.53995ZM20.0339 22.4942C18.6772 22.4942 17.5736 21.3906 17.5736 20.0339C17.5736 18.6772 18.6772 17.5736 20.0339 17.5736C20.0977 17.5736 20.1619 17.5761 20.2292 17.5816C21.4232 17.6745 22.3938 18.6451 22.4867 19.8396C22.4917 19.9049 22.4942 19.9706 22.4942 20.0344C22.4942 21.3906 21.3906 22.4942 20.0339 22.4942ZM38.5464 19.2807H32.0105C31.8504 16.7401 30.8838 14.3054 29.2475 12.3462L31.5471 9.34363C31.7314 9.10312 31.7103 8.78579 31.4959 8.57189C31.282 8.358 30.9647 8.33691 30.7242 8.52068L27.7216 10.8203C27.3887 10.5426 27.0397 10.2816 26.6777 10.04L29.9444 4.38587C34.9212 7.54961 38.2944 13.0205 38.5464 19.2807ZM20.0339 1.50631C23.1389 1.50631 26.0682 2.27452 28.6414 3.6302L25.3743 9.28538C23.7238 8.46444 21.8927 8.03364 20.0339 8.03364C18.1751 8.03364 16.3439 8.46495 14.694 9.28538L11.4263 3.6302C13.9996 2.27452 16.9289 1.50631 20.0339 1.50631ZM9.68807 13.9504C8.73307 15.5712 8.17523 17.4004 8.05724 19.2807H1.52137C1.77343 13.0205 5.14655 7.54961 10.1234 4.38587L13.3901 10.04C11.8813 11.0453 10.6104 12.3849 9.68807 13.9504Z" fill="#5F3EED"/> </svg>'; ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','title' => ''.e($userQuiz->score ?? translate('Pending')).'','description' => 'Your Score']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','title' => ''.e($userQuiz->score ?? translate('Pending')).'','description' => 'Your Score']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php $icon = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="25" viewBox="0 0 24 25" fill="none"> <path opacity="0.969" fill-rule="evenodd" clip-rule="evenodd" d="M10.8281 0.640381C11.4531 0.640381 12.0781 0.640381 12.7031 0.640381C12.7031 2.20288 12.7031 3.76538 12.7031 5.32788C13.1563 5.32788 13.6094 5.32788 14.0625 5.32788C14.0625 4.32788 14.0625 3.32788 14.0625 2.32788C15.4844 2.32788 16.9063 2.32788 18.3281 2.32788C18.3281 3.74975 18.3281 5.17163 18.3281 6.59351C19.2656 6.59351 20.2031 6.59351 21.1406 6.59351C21.1406 7.1404 21.1406 7.68724 21.1406 8.23413C22.0937 8.23413 23.0469 8.23413 24 8.23413C24 10.0623 24 11.8904 24 13.7185C23.3997 18.2567 21.056 21.5457 16.9688 23.5857C15.6768 24.1586 14.3331 24.5102 12.9375 24.6404C12.2969 24.6404 11.6563 24.6404 11.0156 24.6404C6.34875 24.0585 2.99717 21.6523 0.960938 17.4216C0.455879 16.2293 0.135566 14.995 0 13.7185C0 12.9998 0 12.281 0 11.5623C0.624577 6.8981 3.06208 3.56217 7.3125 1.55444C8.45025 1.09428 9.62212 0.78959 10.8281 0.640381ZM11.1094 2.09351C11.1562 2.09351 11.2031 2.09351 11.25 2.09351C11.2578 5.53104 11.25 8.96852 11.2266 12.406C9.09375 15.0466 6.96094 17.6873 4.82812 20.3279C2.3519 17.9705 1.23471 15.0799 1.47656 11.656C1.93226 8.03126 3.72132 5.28906 6.84375 3.42944C8.18386 2.70399 9.60572 2.25868 11.1094 2.09351ZM15.5156 3.78101C15.9688 3.78101 16.4219 3.78101 16.875 3.78101C16.875 6.49976 16.875 9.21851 16.875 11.9373C16.4219 11.9373 15.9688 11.9373 15.5156 11.9373C15.5156 9.21851 15.5156 6.49976 15.5156 3.78101ZM12.7031 6.78101C13.1563 6.78101 13.6094 6.78101 14.0625 6.78101C14.0625 8.49977 14.0625 10.2185 14.0625 11.9373C13.6094 11.9373 13.1563 11.9373 12.7031 11.9373C12.7031 10.2185 12.7031 8.49977 12.7031 6.78101ZM18.3281 8.04663C18.7813 8.04663 19.2344 8.04663 19.6875 8.04663C19.6875 9.34352 19.6875 10.6404 19.6875 11.9373C19.2344 11.9373 18.7813 11.9373 18.3281 11.9373C18.3281 10.6404 18.3281 9.34352 18.3281 8.04663ZM21.1406 9.68726C21.625 9.68726 22.1094 9.68726 22.5938 9.68726C22.5938 10.4373 22.5938 11.1873 22.5938 11.9373C22.1094 11.9373 21.625 11.9373 21.1406 11.9373C21.1406 11.1873 21.1406 10.4373 21.1406 9.68726ZM12.7031 13.3435C15.9844 13.3435 19.2656 13.3435 22.5469 13.3435C22.1049 17.4718 20.0268 20.4484 16.3125 22.2732C15.1631 22.789 13.9599 23.0937 12.7031 23.1873C12.7031 19.906 12.7031 16.6248 12.7031 13.3435ZM11.2031 14.7498C11.25 17.5543 11.2656 20.3668 11.25 23.1873C9.31008 23.0293 7.54444 22.3965 5.95312 21.2888C7.70916 19.112 9.45914 16.9323 11.2031 14.7498Z" fill="#5F3EED"/> </svg>'; $status = translate('Not Yet'); if (isset($userQuiz->score)) { $status = $quiz->pass_mark <= $userQuiz->score ? '<span class="text-success">' . translate('Passed') . '</span>' : '<span class="text-danger">' . translate('Fail') . '</span>'; } ?> <?php if (isset($component)) { $__componentOriginalb3708f02ae7b5774f43d637496fa510d = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginalb3708f02ae7b5774f43d637496fa510d = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.card.single-card-one','data' => ['icon' => ''.$icon.'','title' => ''.$status.'','description' => 'Your Result']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.card.single-card-one'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['icon' => ''.$icon.'','title' => ''.$status.'','description' => 'Your Result']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $attributes = $__attributesOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__attributesOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> <?php if (isset($__componentOriginalb3708f02ae7b5774f43d637496fa510d)): ?> <?php $component = $__componentOriginalb3708f02ae7b5774f43d637496fa510d; ?> <?php unset($__componentOriginalb3708f02ae7b5774f43d637496fa510d); ?> <?php endif; ?> </div> </div> <!-- QUIZ STEP FORM --> <div class="lms-quiz-form-container mt-14"> <?php if(empty($userQuiz)): ?> <?php if (isset($component)) { $__componentOriginal9e05e2178cc5d33c3d1a97a50bea5f28 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal9e05e2178cc5d33c3d1a97a50bea5f28 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::cards.empty','data' => ['title' => 'Let\'s See What You\'ve Learned!','description' => ' You\'ve learned a lot, now it\'s time to put it to the test. Don\'t worry—this quiz is your chance to see how much you\'ve mastered Ready to show what you know?','btn' => 'true','btntext' => 'Start Quiz Now','btnAction' => ''.e(route('exam.start', ['type' => $type, 'exam_type_id' => $exam_type_id, 'course_id' => $data['course_id'], 'status' => 'start'])).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::cards.empty'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['title' => 'Let\'s See What You\'ve Learned!','description' => ' You\'ve learned a lot, now it\'s time to put it to the test. Don\'t worry—this quiz is your chance to see how much you\'ve mastered Ready to show what you know?','btn' => 'true','btntext' => 'Start Quiz Now','btnAction' => ''.e(route('exam.start', ['type' => $type, 'exam_type_id' => $exam_type_id, 'course_id' => $data['course_id'], 'status' => 'start'])).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal9e05e2178cc5d33c3d1a97a50bea5f28)): ?> <?php $attributes = $__attributesOriginal9e05e2178cc5d33c3d1a97a50bea5f28; ?> <?php unset($__attributesOriginal9e05e2178cc5d33c3d1a97a50bea5f28); ?> <?php endif; ?> <?php if (isset($__componentOriginal9e05e2178cc5d33c3d1a97a50bea5f28)): ?> <?php $component = $__componentOriginal9e05e2178cc5d33c3d1a97a50bea5f28; ?> <?php unset($__componentOriginal9e05e2178cc5d33c3d1a97a50bea5f28); ?> <?php endif; ?> <?php else: ?> <?php $attempt_number = $userQuiz->attempt_number ?? 0; $disabled = $attempt_number == $quiz->total_retake ? 'disabled' : ''; ?> <div class="grid grid-cols-2 gap-6"> <?php $__currentLoopData = $questions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $questionList): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <?php if (isset($component)) { $__componentOriginal8040552e42f4fd869db75a6e28f5bca2 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8040552e42f4fd869db75a6e28f5bca2 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f484570d7cf557020e11ace406901b10::exam.quiz.question','data' => ['questionList' => $questionList,'quizId' => ''.e($quiz->id).'','disabled' => ''.e($disabled).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('theme::exam.quiz.question'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['questionList' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($questionList),'quizId' => ''.e($quiz->id).'','disabled' => ''.e($disabled).'']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8040552e42f4fd869db75a6e28f5bca2)): ?> <?php $attributes = $__attributesOriginal8040552e42f4fd869db75a6e28f5bca2; ?> <?php unset($__attributesOriginal8040552e42f4fd869db75a6e28f5bca2); ?> <?php endif; ?> <?php if (isset($__componentOriginal8040552e42f4fd869db75a6e28f5bca2)): ?> <?php $component = $__componentOriginal8040552e42f4fd869db75a6e28f5bca2; ?> <?php unset($__componentOriginal8040552e42f4fd869db75a6e28f5bca2); ?> <?php endif; ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </div> <?php if($attempt_number >= 1 && $attempt_number !== $quiz->total_retake && !$again && !isInstructor()): ?> <div class="flex justify-end mt-10"> <a class="quiz-btn btn b-solid btn-primary-solid h-12" href="<?php echo e(route('exam.start', ['type' => $type, 'exam_type_id' => $exam_type_id, 'course_id' => $data['course_id'], 'status' => 'try'])); ?>"> <?php echo e(translate('Try Again')); ?> </a> </div> <?php else: ?> <?php if(!$disabled && !isInstructor()): ?> <div class="flex justify-end mt-10"> <button type="submit" class="quiz-btn btn b-solid btn-primary-solid h-12 finished" aria-label="Submit quiz" onclick="event.preventDefault(); document.getElementById('final-submit').submit();"> <?php echo e(translate('Submit')); ?> </button> <form id="final-submit" action="<?php echo e(route('quiz.store.result', $quiz->id)); ?>" method="POST" class="hidden"> <?php echo csrf_field(); ?> <input type="hidden" name="course_id" id="courseId" value="<?php echo e($data['course_id']); ?>"> <input type="hidden" name="topic_id" id="topicId" value="<?php echo e($data['topic_id']); ?>"> <input type="hidden" name="chapter_id" id="chapterId" value="<?php echo e($data['chapter_id']); ?>" /> </form> </div> <?php endif; ?> <?php endif; ?> <?php endif; ?> </div> </div> <!-- END INNER CONTENT AREA --> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal4ea3ceba530d619a977e9c813ff095c4)): ?> <?php $attributes = $__attributesOriginal4ea3ceba530d619a977e9c813ff095c4; ?> <?php unset($__attributesOriginal4ea3ceba530d619a977e9c813ff095c4); ?> <?php endif; ?> <?php if (isset($__componentOriginal4ea3ceba530d619a977e9c813ff095c4)): ?> <?php $component = $__componentOriginal4ea3ceba530d619a977e9c813ff095c4; ?> <?php unset($__componentOriginal4ea3ceba530d619a977e9c813ff095c4); ?> <?php endif; ?> <?php /**PATH D:\www\edulab\Modules\LMS\resources\views\theme\exam\quiz\index.blade.php ENDPATH**/ ?>