
<?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-8">
          <?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 Category</h5>
                </div>
            <div class="card-body">
            <form action="<?php echo e(route('addcategory')); ?>" method="post">
            <?php echo csrf_field(); ?>
            <div class="form-group">
              <label for="">Category name</label>
              
              <input type="text" class="form-control" name="category_name" value="<?php echo e(old('category_name')); ?>" placeholder="Enter category name" required>
              <font style="color:red"> <?php echo e($errors->has('category_name') ?  $errors->first('category_name') : ''); ?> </font>
            </div>
            <div class="form-group">
              <label for="">Comprehensive </label> <br>
              <input type="radio" id="contactChoice1"  name="comprehensive" value="YES">
             <label for="contactChoice1">YES</label>
            <input type="radio" id="contactChoice2" name="comprehensive" value="NO">
             <label for="contactChoice2">NO</label>
            <font style="color:red"> <?php echo e($errors->has('comprehensive') ?  $errors->first('comprehensive') : ''); ?> </font>
            </div>
            <div class="form-group">
              <label for="">Comprehensive Test Percentage</label>
              <input type="text" class="form-control" name="comprehensive_test_percentage" value="<?php echo e(old('comprehensive_test_percentage')); ?>" placeholder="Enter Percentage">
              <font style="color:red"> <?php echo e($errors->has('comprehensive_test_percentage') ?  $errors->first('comprehensive_test_percentage') : ''); ?> </font>
            </div>
            <div class="form-group">
              <label for="">Tag Questions</label>
              <select  class="form-control tagquestions" name="tag_questions[]" multiple>
              <?php if(!empty($tagquestions)): ?>
                                    <?php $__empty_1 = true; $__currentLoopData = $tagquestions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tagques): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <option value="<?php echo e($tagques->id); ?>"><?php echo e($tagques->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('tag_questions') ?  $errors->first('tag_questions') : ''); ?> </font>
              </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' => 'category'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\stimclexupdate\resources\views/category/addcategory.blade.php ENDPATH**/ ?>