<?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($message = Session::get('success')): ?>
            <div class="btn btn-success btn-block btn-sm custom_message text-left">
                <button type="button" class="close" data-dismiss="alert">×</button>    
                <strong><?php echo e($message); ?></strong>
            </div>
          <?php endif; ?>
        <div class="card">  
            <div class="card-header">
                    <h5 class="title">Add Question Category</h5>
                </div>
            <div class="card-body">
            <?php if($category->id==''): ?>
             	<?php echo e(Form::open([ 'id'=>'question_category'])); ?>

            	<?php echo e(csrf_field()); ?>

            	<?php echo method_field("POST"); ?>
            <?php else: ?>
            	 <form action="<?php echo e(route('updatequestcategory',$category->id)); ?>" method="post">
            	<?php echo csrf_field(); ?>
            	<?php echo method_field('patch'); ?>
            <?php endif; ?>
             <div class="form-group">
              <label for="">Question Category</label>
              <?php echo e(Form::text('question_category',$category->question_category,array('autocomplete' => 'off' ,'id' =>'question_category','class' => 'form-control','placeholder' => 'Enter Question Category'))); ?>

              <?php if($errors->has('question_category')): ?>
              <p style="color:red;font-size: 12px;font-weight: 600;margin-top: -17px !important;"> <?php echo e($errors->first('question_category')); ?> </p>
              <?php endif; ?>
            </div>
            <div class="input-text form-group">
              <label>Input Type <span class="mandatory">* </span></label>
              <?php echo e(Form::select('input_option',$question_types,$category->input_option,array('autocomplete' => 'off' ,'id' =>'input_option','disable' => 'disable','class' => 'form-control'))); ?>

              <?php if($errors->has('input_option')): ?>
              <p style="color:red;font-size: 12px;font-weight: 600;margin-top: -17px !important;"> <?php echo e($errors->first('input_option')); ?> </p>
              <?php endif; ?>
            </div><!-- Field -->
            <div class="form-group">
            <label>Status <span class="mandatory">*</span></label>
                            <div class="radiobutton">
                                <input type="radio" name="status" id="active" value="1" checked>
                                <label for="active">Active</label>
                                <input type="radio" name="status" id="inactive" value="0">
                                <label for="inactive">Inactive</label>
                            </div><!-- Radio Button -->
                        </div><!-- Field -->
           
            <div class="form-group" style="margin-top: 24px;">
              <input type="submit" class="btn btn-primary" value="Submit">
            </div>

          <?php echo e(Form::close()); ?>

          </div>
          </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', ['pageSlug' => 'questioncategory'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sibzsolu/public_html/training/stimclex/resources/views/questioncategory/add.blade.php ENDPATH**/ ?>