<?php $__env->startSection('content'); ?>
<div class="container-xxl flex-grow-1 container-p-y"><div class="card"><div class="card-header"><h5 class="mb-0">Edit Category</h5></div><div class="card-body">
<form method="POST" action="<?php echo e(route('admin.categories.update',$category)); ?>" class="row g-3"><?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
<div class="col-md-6"><label class="form-label">Name</label><input name="name" class="form-control" value="<?php echo e($category->name); ?>" required></div>
<div class="col-md-6"><label class="form-label">Slug</label><input name="slug" class="form-control" value="<?php echo e($category->slug); ?>"></div>
<div class="col-md-6"><label class="form-label">Icon</label><input name="icon" class="form-control" value="<?php echo e($category->icon); ?>"></div>
<div class="col-md-6 form-check mt-4"><input class="form-check-input" type="checkbox" name="is_active" value="1" <?php if($category->is_active): echo 'checked'; endif; ?>><label class="form-check-label">Active</label></div>
<div class="col-12 d-flex gap-2"><button class="btn btn-primary">Update</button></form><form method="POST" action="<?php echo e(route('admin.categories.destroy',$category)); ?>"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="btn btn-outline-danger">Delete</button></form></div>
</div></div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\G_desizn\marketplace\resources\views/admin/categories/edit.blade.php ENDPATH**/ ?>