File: /var/www/kosmicfarms/storage/framework/views/3d581c7ea389c54c2b165fcc0e553a112779f96e.php
<?php $__env->startSection('content'); ?>
<div class="d-sm-flex align-items-center justify-content-between mg-b-20 mg-lg-b-25 mg-xl-b-30">
<div>
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-style1 mg-b-10">
<li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>">Home</a></li>
<li class="breadcrumb-item"><a href="<?php echo e(url('/products')); ?>">Products</a></li>
<li class="breadcrumb-item"><a href="<?php echo e(url('/products/categories')); ?>">Categories</a></li>
<li class="breadcrumb-item active">Edit Category</li>
</ol>
</nav>
<h4 class="mg-b-0 tx-spacing--1">Edit Category</h4>
</div>
</div>
<!-- ============================================================== -->
<!-- Content Start -->
<!-- ============================================================== -->
<div data-label="Example" class="df-example demo-forms">
<h4 id="section2" class="mg-b-10">Edit Product Type</h4>
<p class="mg-b-30">Edit product type information.</p>
<?php if($errors->any()): ?>
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="alert bg-danger alert-dismissible " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Error!</strong> <?php echo e($error); ?> </div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
<?php if(session('success')): ?>
<div class="alert bg-success alert-dismissible " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> <strong>Success!</strong> Category successfully updated. </div>
<?php endif; ?>
<div class="row">
<div class="col">
<form method="post" action="<?php echo e(url('/products/categories/'.$category->id.'/update')); ?>" class="form-horizontal">
<?php echo csrf_field(); ?>
<div class="form-group">
<label class="d-block">Category Name</label>
<input name="category" type="text" placeholder="New product name" value="<?php echo e(old('category', $category->name)); ?>" required="required" class="form-control form-control-rounded">
</div>
<div class="form-group">
<label class="d-block">Description</label>
<textarea class="form-control" name="description"><?php echo e(old('category', $category->description)); ?></textarea>
</div>
<button type="submit" class="btn btn-success btn-icon"><i class="fa fa-floppy-o "></i>Create</button>
<a href="<?php echo e(URL::previous()); ?>" class="btn btn-warning btn-icon"><i class="fa fa-reply"></i>Back</a>
</form>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('jscript'); ?>
<!-- Summernote -->
<script src="<?php echo e(asset('admin/assets/lib/summernote/summernote.js')); ?>"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#summernote').summernote({
height:'300px',
toolbar: [
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript']],
['fontsize', ['fontsize']],
['color', ['color']],
['para', ['ul', 'ol', 'paragraph']]
]
});
$('button[data-event="showImageDialog"]').attr('data-toggle', 'image').removeAttr('data-event');
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/kosmicfarms/resources/views/products/categories/edit.blade.php ENDPATH**/ ?>