IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/70bcee9fd9fda5c6547cd2e685a6a508eccc0d35.php

<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">
    <?php echo $__env->make('layouts.partial.head', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <link rel="stylesheet" type="text/css" href="<?php echo e(asset('dist/steps/jquery.steps.css')); ?>">
    <body class="theme-purple">
        <!-- Page Loader -->
        <div class="page-loader-wrapper">
            <div class="loader">
                <div class="m-t-30"><img class="zmdi-hc-spin" src="<?php echo e(asset('dist/images/logo.svg')); ?>" width="48" height="48" alt="schholMIS"></div>
                <p>Please wait...</p>        
            </div>
        </div>
        <!-- Overlay For Sidebars -->
        <div class="overlay"></div>

        <!-- Right Sidebar -->
        <?php echo $__env->make('layouts.partial.rightsidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <section class="content" style="margin:0px;">
            <div class="block-header">
                <div class="row">
                    <div class="col-lg-7 col-md-6 col-sm-12">
                        <?php
                        $idstdsession = Session::get('idStudent');
                        $student = \App\AdmEntry::where('idStudent', '=', $idstdsession)->first();
                        $school = \App\School::where('idSchool', '=', $student->idSchool)->first();
                        ?>
                        <h2><?php echo e($school->schoolName); ?>

                            <small>Welcome to <?php echo e($school->schoolName); ?></small>
                        </h2>
                    </div>

                </div>
            </div>
            <div class="container-fluid">
                <?php if(session()->has('message')): ?>
                <div class="alert alert-danger">
                    <?php echo e(session()->get('message')); ?>

                </div>
                <?php endif; ?>
                <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <div class="row clearfix">
                    <div class="col-lg-12 col-md-12 col-sm-12">
                        <div class="card">
                            <div class="header">
                                <h2><strong>Exam Questions</strong></h2>
                            </div>
                            <div class="body">
                                <?php echo Form::open(['url' => 'school/exam/questions','class'=>'form-horizontal','id'=>'form']); ?>

                                <div id="wizard">
                                    <?php $j = 0; ?>
                                    <?php $__currentLoopData = $paper; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <?php $mcq = DB::table('exam_mcq_questions')->where('idMcq', $template->idMcq)->where('questionType', $value->typeName)->get();
                                    $p = 1;
                                    ?>

                                    <?php $__currentLoopData = $mcq; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mques): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <h2>Question ( <strong><?php echo e($mques->marks); ?> mark</strong> )</h2>
                                    <section>
                                        <div class="row clearfix">
                                            <div class="col-sm-10 offset-sm-2"> 
                                                <div class="card">
                                                    <div class="header">
                                                        <h2><strong>Question</strong> <br>  
                                                            <?php if($mques->questionType == "math_type"): ?>
                                                            <p style="margin-top: 20px;"><div class="mathfield" id="mv_<?php echo e($p); ?>"><?php echo e($mques->question); ?></div></p>
                                                            <?php else: ?> 
                                                            <?php if($mques->questionType != "image_image" && $mques->questionType != "images_questions" && $mques->questionType != "math_type"): ?> 
                                                            <p style="margin-top: 20px;"><?php echo e($mques->question); ?></p>
                                                            <?php else: ?>
                                                            <img src="<?php echo e(asset('storage/schools/'.$template->idSchool.'/mcq/'.$mques->question)); ?>" alt="questions" width="100px" style="margin: 20px;" />
                                                            <?php endif; ?>
                                                            <?php endif; ?>
                                                        </h2>
                                                        <hr>   
                                                    </div>
                                                    <div class="body">
                                                        <?php if($mques->questionType == "mcq" || $mques->questionType == "images_questions"): ?> 
                                                        <ul class="answer-group" style="list-style-type: upper-alpha !important;">
                                                            <li class="answer-group-item"> <p><?php echo e($mques->answerA); ?></p></li>
                                                            <li class="answer-group-item"> <p><?php echo e($mques->answerB); ?></p></li>
                                                            <li class="answer-group-item"> <p><?php echo e($mques->answerC); ?></p></li>
                                                            <li class="answer-group-item"> <p><?php echo e($mques->answerD); ?></p></li>
                                                        </ul>
                                                        <hr>
                                                        <p>Correct Answer is </p>
                                                        <?php $j++; ?>
                                                        <div class="row clearfix">
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="A">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option A
                                                                </label>  
                                                            </div>
                                                        <?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="B">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option B
                                                                </label>  
                                                            </div>
                                                        <?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="C">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option C
                                                                </label>  
                                                            </div>
                                                        <?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="D">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option D
                                                                </label> 
                                                            </div>

                                                        </div>
                                                        <?php else: ?>
                                                        <?php if($mques->questionType == "question_image" || $mques->questionType == "image_image" ): ?>
                                                        <div class="row clearfix">
                                                            <div class="col-sm-6">
                                                                A. <div class="answer-group-item"><img src="<?php echo e(asset('storage/schools/'.$template->idSchool.'/mcq/'.$mques->answerA)); ?>" alt="questions" width="100px"/></div>
                                                            </div><div class="col-sm-6">        
                                                                B. <div class="answer-group-item"><img src="<?php echo e(asset('storage/schools/'.$template->idSchool.'/mcq/'.$mques->answerB)); ?>" alt="questions" width="100px"/></div>
                                                            </div><div class="row clearfix">        
                                                            </div><div class="col-sm-6">  
                                                                C. <div class="answer-group-item"><img src="<?php echo e(asset('storage/schools/'.$template->idSchool.'/mcq/'.$mques->answerC)); ?>" alt="questions" width="100px"/></div>
                                                            </div><div class="col-sm-6">  
                                                                D. <div class="answer-group-item"><img src="<?php echo e(asset('storage/schools/'.$template->idSchool.'/mcq/'.$mques->answerD)); ?>" alt="questions" width="100px"/></div>
                                                            </div>
                                                        </div>
                                                        <hr>
                                                        <p>Correct Answer is </p>
<?php $j++; ?>
                                                        <div class="row clearfix">
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="A">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option A
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="B">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option B
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="C">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option C
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="D">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option D
                                                                </label> 
                                                            </div>

                                                        </div>
                                                        <?php endif; ?>
                                                        <?php if($mques->questionType == "short" || $mques->questionType == "long"): ?>
                                                        <textarea class="form-control" placeholder="Write your answer here" rows="5"></textarea>
                                                        <?php endif; ?>
                                                        <?php if($mques->questionType == "image_long"): ?>
                                                        <div class="dropzone" id='frmFileUpload'>
                                                            <div class="dz-message">
                                                                <div class="drag-icon-cph"> <i class="material-icons">touch_app</i> </div>
                                                                <h3>Drop files here or click to upload.</h3>
                                                                <div class="fallback" id="dz-error-message">
                                                                    <input name="file" type="file" multiple />
                                                                </div>
                                                            </div>
                                                        </div>

                                                        <?php endif; ?>
                                                        <?php if($mques->questionType == "math_type"): ?> 
                                                        <div class="mathfield" id="mva_<?php echo e($p); ?>" style="margin-bottom: 10px;">A. <?php echo e($mques->answerA); ?></div>
                                                        <div class="mathfield" id="mvb_<?php echo e($p); ?>" style="margin-bottom: 10px;">B. <?php echo e($mques->answerB); ?></div>
                                                        <div class="mathfield" id="mvc_<?php echo e($p); ?>" style="margin-bottom: 10px;">C. <?php echo e($mques->answerC); ?></div>
                                                        <div class="mathfield" id="mvd_<?php echo e($p); ?>">D. <?php echo e($mques->answerD); ?></div>

                                                        <hr>
                                                        <p>Correct Answer is </p>
<?php $j++; ?>
                                                        <div class="row clearfix">
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="A">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option A
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="B">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option B
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="C">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option C
                                                                </label>  
                                                            </div>
<?php $j++; ?>
                                                            <div class="col-sm-3 radio"> 
                                                                <input type="radio" name="radio[<?php echo e($mques->idQuestions); ?>]" id="radio_<?php echo e($j); ?>" value="D">
                                                                <label for="radio_<?php echo e($j); ?>">
                                                                    Option D
                                                                </label> 
                                                            </div>

                                                        </div>
<?php $p++; ?>
                                                        <?php endif; ?>
                                                        <?php endif; ?>

                                                    </div>
                                                </div>
                                            </div>        
                                        </div>
                                    </section>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> 

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                    </div>
                </div>
            <?php echo $__env->make('layouts.partial.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            </div>
           
        </section>
    </div>

    <!-- Scripts -->
<?php echo $__env->make('layouts.partial.script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

<script src="<?php echo e(asset('dist/steps/jquery.steps.js')); ?>"></script>
<script>
    $(function ()
        {
            $("#wizard").steps({
                headerTag: "h2",
                bodyTag: "section",
                transitionEffect: "slideLeft",
                stepsOrientation: "vertical"
            });
        });
</script>

<script type="module">
    import MathLive from 'https://unpkg.com/mathlive/dist/mathlive.mjs';
    <?php if(isset($template)): ?> 
    <?php $__currentLoopData = $paper; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
     <?php if($value->typeName == "math_type"): ?> 
      
      <?php  
      $mcq = DB::table('exam_mcq_questions')->where('idMcq',$template->idMcq)->where('questionType',$value->typeName)->get();
      $k = 1;
      ?>
      <?php $__currentLoopData = $mcq; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $mathValue): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        MathLive.makeMathField('mv_<?php echo e($k); ?>',{
              smartMode: true
          });
        MathLive.makeMathField('mva_<?php echo e($k); ?>',{
              smartMode: true
          });
        MathLive.makeMathField('mvb_<?php echo e($k); ?>',{
              smartMode: true
          });
        MathLive.makeMathField('mvc_<?php echo e($k); ?>',{
              smartMode: true
          });
        MathLive.makeMathField('mvd_<?php echo e($k); ?>',{
              smartMode: true
          });
        <?php $k++; ?>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

      <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
</script>
<script>
Dropzone.options.frmFileUpload= {
    autoProcessQueue: false,
    url: "<?php echo e(url('school/galleries')); ?>",
    uploadMultiple: true,
    parallelUploads: 50,
    maxFiles: 20,
    maxFilesize: 10,
    acceptedFiles: 'image/*',
    addRemoveLinks: true,
    init: function() {
        dzClosure = this; 
        this.on("error", function(file, response, xhr) { 
            if (response.hasOwnProperty('errors')) {
                // Validation error
                for (const error in response.errors) {
                   this.emit("error", file, response.errors[error].join(' '));
                }
            }
        });
        this.on('success', function(){
            //if (this.getQueuedFiles().length == 0 && this.getUploadingFiles().length == 0) {
                    location.reload();
          //  }
    });
    }
}

</script>

</body>
</html>

Copyright © 2021 - 2025 IMMREX7