
<?php $__env->startPush('style'); ?>
 

<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<?php $__env->stopPush(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
    <div class="row">
        <div class="col-md-12">

          <?php if(session()->has('message')): ?>
            <p class="btn btn-success btn-block btn-sm custom_message text-left"><?php echo e(session()->get('message')); ?></p>
          <?php endif; ?>
        <div class="card">  
            <div class="card-header">
                    <h5 class="title">Add Questions</h5>
                    
                </div>
            <div class="card-body">
 <?php //print_r($categories);?>
          <form action="<?php echo e(route('addweightage')); ?>" method="post">
            <?php echo csrf_field(); ?>
            <div class="form-group">
              <label for="">Questions</label>
              <input type="text" class="form-control" name="question" value="<?php echo e(old('question')); ?>" placeholder="Enter question" required>
              <font style="color:red"> <?php echo e($errors->has('question') ?  $errors->first('question') : ''); ?> </font>
            </div>
            <div class="row">
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Category</label>
              <select  class="form-control" name="category">
              <option value="">Select</option>
              <?php if(!empty($categories)): ?>
                                    <?php $__empty_1 = true; $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <option value="<?php echo e($category->id); ?>"><?php echo e($category->category_name); ?></option>
                                    

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <option value="">No data found</option>
                                    <?php endif; ?>
                                <?php endif; ?>
                
              </select>
              <font style="color:red"> <?php echo e($errors->has('category') ?  $errors->first('category') : ''); ?> </font>
            </div>
            </div>
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Question Type</label>
              <select  class="form-control" name="question_type">
              <?php if(!empty($questions_categories)): ?>
                                    <?php $__empty_1 = true; $__currentLoopData = $questions_categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $questcat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <option value="<?php echo e($questcat->id); ?>"><?php echo e($questcat->question_category); ?></option>
                                    

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <option value="">No data found</option>
                                    <?php endif; ?>
                                <?php endif; ?>
                
              </select>
              <font style="color:red"> <?php echo e($errors->has('question_type') ?  $errors->first('question_type') : ''); ?> </font>
            </div>
            </div>
            </div>
            <div class="row">
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Weightage Type</label>
              <select  class="form-control" name="weightage_type">
              <option value="">Select</option>
                <?php if(!empty($weightages)): ?>
                                    <?php $__empty_1 = true; $__currentLoopData = $weightages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $weightage): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <option value="<?php echo e($weightage->id); ?>"><?php echo e($weightage->weightage_title); ?></option>
                                    

                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                        <option value="">No data found</option>
                                    <?php endif; ?>
                                <?php endif; ?>
              </select>
              <font style="color:red"> <?php echo e($errors->has('weightage_type') ?  $errors->first('weightage_type') : ''); ?> </font>
            </div>
            </div>
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Notes</label>
              <textarea  class="form-control" name="notes" style="border: 1px solid #2825255e;">
               
              </textarea>
               
              <font style="color:red"> <?php echo e($errors->has('notes') ?  $errors->first('notes') : ''); ?> </font>
            </div>
            </div>
            </div>
            <div class="row">
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Option A</label>
               <input type="text" class="form-control" name="question" value="<?php echo e(old('A')); ?>" placeholder="Option A" required>
              <font style="color:red"> <?php echo e($errors->has('A') ?  $errors->first('A') : ''); ?> </font>
            </div>
            </div>
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Option B</label>
               <input type="text" class="form-control" name="B" value="<?php echo e(old('B')); ?>" placeholder="Option B" required>
              <font style="color:red"> <?php echo e($errors->has('question_type') ?  $errors->first('question_type') : ''); ?> </font>
            </div>
            </div>
            </div>
            <div class="row">
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Option C</label>
              <input type="text" class="form-control" name="C" value="<?php echo e(old('C')); ?>" placeholder="Option C" required>
              <font style="color:red"> <?php echo e($errors->has('C') ?  $errors->first('C') : ''); ?> </font>
            </div>
            </div>
            <div class="col-md-6">
             <div class="form-group">
              <label for="">Option D</label>
               <input type="text" class="form-control" name="D" value="<?php echo e(old('D')); ?>" placeholder="Enter question" required>
              <font style="color:red"> <?php echo e($errors->has('D') ?  $errors->first('D') : ''); ?> </font>
            </div>
            </div>
            </div>
            <div class="form-group" style="margin-top: 24px;">
              <input type="submit" class="btn btn-primary" value="Submit">
            </div>

          </form>
          </div>
          </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['pageSlug' => 'weightage'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\stimclexupdate\resources\views/questions/addquestions.blade.php ENDPATH**/ ?>