<?php $__env->startSection('title', 'Edit Category'); ?>

<?php $__env->startSection('content'); ?>
<div style="margin-bottom: 24px;">
    <a href="<?php echo e(route('admin.categories.index')); ?>" style="color: var(--text-muted); text-decoration: none; font-size: 13px;">← Back to Categories</a>
    <h1 class="serif" style="font-size: 26px; margin-top: 8px; color: #0f172a;">Edit Category: <?php echo e($category->name); ?></h1>
</div>

<div class="admin-card" style="max-width: 600px;">
    <form action="<?php echo e(route('admin.categories.update', $category)); ?>" method="POST">
        <?php echo csrf_field(); ?>
        <?php echo method_field('PUT'); ?>
        
        <div style="margin-bottom: 16px;">
            <label style="display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted);">Category Name *</label>
            <input type="text" name="name" value="<?php echo e(old('name', $category->name)); ?>" class="form-control" required>
        </div>

        <div style="margin-bottom: 16px;">
            <label style="display: block; margin-bottom: 6px; font-size: 13px; color: var(--text-muted);">Description</label>
            <textarea name="description" rows="4" class="form-control"><?php echo e(old('description', $category->description)); ?></textarea>
        </div>

        <div style="margin-bottom: 20px;">
            <label style="display: flex; align-items: center; gap: 8px; cursor: pointer; color: #334155;">
                <input type="checkbox" name="is_active" value="1" <?php echo e($category->is_active ? 'checked' : ''); ?>> Active on Storefront
            </label>
        </div>

        <div style="display: flex; gap: 12px;">
            <button type="submit" class="btn-admin btn-primary">Update Category</button>
            <a href="<?php echo e(route('admin.categories.index')); ?>" class="btn-admin btn-secondary">Cancel</a>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/koushikkona/Documents/Projects/divne/resources/views/admin/categories/edit.blade.php ENDPATH**/ ?>