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

<?php 

//dd($cat);

?>


.help-block{
  color:red;
}
.is-invalid{border:1px solid red !important;}
      </style>          
<div class="row justify-content-center">
   <div class="col-lg-5">
    <div class="card shadow-lg border-0 rounded-lg mt-5">
                         <h4 class="text-center font-weight-light my-4">Create Account</h4>
									 
 
 <?php $__currentLoopData = ["success","error"]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $status): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if(Session::has($status)): ?>
<div class="alert alert-<?php echo e($status); ?> alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  <strong><?php echo e($status); ?>!</strong> <?php echo e(Session::get($status)); ?> action.
</div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <form  name="chngpwd" method="post" action="
                                    <?php echo e(route('postcategory')); ?>">
                                  <?php echo csrf_field(); ?>
                                  <input type="hidden" name="id" value="<?php echo e(!empty($cat->id)?$cat->id:''); ?>" />
                                      <div class="form-group">
                                            <label for="password">Category Name</label>
<input id="categorynm" type="text"  name="categorynm" class="<?php $__errorArgs = ['categorynm'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> is-invalid <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?> form-control" autocomplete="off"  value="<?php echo e(!empty($cat->categorynm)?$cat->categorynm:''); ?>" >

 <?php if($errors->has('categorynm')): ?>
  <p class="help-block"><span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
            <?php echo e($errors->first('categorynm')); ?></p>
        <?php endif; ?>
                                          </div>

   


<div class="col-sm-12 text-center">
<button type="submit" name="change" class="btn btn-primary" >Create</button>

</div>
 </form>
                             
        </div>      
		</div>
		</div>



     <?php $__env->stopSection(); ?>
             
<?php echo $__env->make('layout/master2', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\sangya1\resources\views/category.blade.php ENDPATH**/ ?>