<link rel="stylesheet" type="text/css" href="<?php echo e(url('dropzone/dist/min/dropzone.min.css')); ?>">

<?php $__env->startSection('content'); ?>
<div class="common-content">
          <div class="page-content">
                <div class="page-heading">
                    <div class="headings">
                        <h6>Add Category</h6>
                    </div>
                </div>
                <form method="POST" id="add_category" action="<?php echo e(url('admin/updatecategory')); ?>"  enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <div class="dashboard-cnts">
                    <div class="bid-stats bidplace">
                        <div class="row">
                            <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group categorylabel">
                                        <label>Category Name</label>
                                        <input type="text" class="form-control" name="category_name" id="category_name" value="<?php echo e($get_category->category); ?>" required>
                                        <input type="hidden" class="form-control" name="category_id" value="<?php echo e($get_category->category_id); ?>" >
                                      </div>
                                </div>
                              </div>
                              

                              <div class="col-lg-12 col-md-6 col-sm-12 col-xs-12">
                                <div class="form-inputs">
                                     <div class="form-group categorylabel">
                                        <label>Category Description</label>
                                        <textarea rows='5' name="category_description" id="category_description" required><?php echo e($get_category->description); ?></textarea>
                                      </div>
                                </div>
                              </div>

                              
                              
                              
                              
                        <div class="row">
                         <div class="col-12">
                            <div class="green-button submit-clz">
                                <button id="create">Submit</button>
                             </div> 
                         </div>
                      </div>
                    </div>
                </div>
                </form>
          </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script src="<?php echo e(url('dropzone/dist/min/dropzone.min.js')); ?>" type="text/javascript"></script>
<script>
$("#create").click(function(){
    //alert("bbbb");
	$("#add_category").validate({
		ignore: [],
        rules: {
            
			"category_name": {
                required: true
               
            },
			"category_description": {
                required: true
               
            },
        },
        submitHandler: function(form, e) {
             $(".pageloader").show();
            $(".pageloader").delay(5000).fadeOut("slow");
		   form.submit();
        }
    });
});
$(function(){
    $('#add_category').on('submit', function(event){
        event.preventDefault();
       
    });
});
</script>
 


 


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

 


<?php echo $__env->make('layouts.main_admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/meddbot/public_html/resources/views/admin/editcategory.blade.php ENDPATH**/ ?>