
<?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">Edit Category</h5>
                </div>
            <div class="card-body">

          <form action="<?php echo e(route('category.updatecategory',$category->id)); ?>" method="post">
            <?php echo csrf_field(); ?>
            <?php echo method_field('patch'); ?>
            <div class="form-group">
              <label for="">Category name</label>
              <input type="text" class="form-control" name="category_name" value="<?php echo e($category->category_name); ?>">
              <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>
              <input type="radio" id="contactChoice1"  name="comprehensive" value="YES" <?php echo e(($category->comprehensive=="YES") ? 'Checked' : ''); ?>>
             <label for="contactChoice1">YES</label>
            <input type="radio" id="contactChoice2" name="comprehensive" value="NO" <?php echo e(($category->comprehensive=="NO") ? 'Checked' : ''); ?>>
             <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($category->comprehensive_test_percentage); ?>" placeholder="Enter comprehensive_test_percentage">
              <font style="color:red"> <?php echo e($errors->has('comprehensive_test_percentage') ?  $errors->first('comprehensive_test_percentage') : ''); ?> </font>
            </div>
            <div class="form-group" style="margin-top: 24px;">
              <input type="submit" class="btn btn-success" value="Update">
            </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 C:\xampp\htdocs\sivaranjani\stimclex_old\resources\views/category/editcategory.blade.php ENDPATH**/ ?>