<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <style>
            .dash-header-title {
                font-weight: 600;
                font-size: 1.5rem;
                letter-spacing: -0.01em;
                color: #0f0f0f;
            }
        </style>
        <h2 class="dash-header-title">EDIT KATEGORI</h2>
     <?php $__env->endSlot(); ?>

    <style>
        .form-wrap {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            max-width: 560px;
            margin: 48px auto;
            padding: 0 24px;
        }

        .form-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 32px;
        }

        .form-breadcrumb-link {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #bbb;
            text-decoration: none;
            transition: color 0.2s;
        }

        .form-breadcrumb-link:hover { color: #0f0f0f; }

        .form-breadcrumb-sep { 
            font-size: 0.65rem; 
            color: #ddd; 
        }

        .form-breadcrumb-current {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #0f0f0f;
        }

        .form-card {
            background: #fff;
            border: 1px solid #ebebeb;
            border-radius: 12px;
            overflow: hidden;
        }

        .form-card-header {
            padding: 24px 32px;
            border-bottom: 1px solid #f5f5f5;
        }

        .form-card-eyebrow {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #999;
            margin-bottom: 4px;
        }

        .form-card-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: #0f0f0f;
            letter-spacing: -0.01em;
        }

        .form-card-subtitle {
            font-size: 0.75rem;
            font-weight: 400;
            color: #bbb;
            margin-top: 4px;
        }

        .form-card-body { 
            padding: 32px; 
        }

        .form-field { 
            margin-bottom: 28px; 
        }

        .form-label {
            display: block;
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #999;
            margin-bottom: 10px;
        }

        .form-input {
            width: 100%;
            background: #fafafa;
            border: 1px solid #e8e8e8;
            border-radius: 8px;
            padding: 12px 16px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.9rem;
            font-weight: 400;
            color: #1a1a1a;
            outline: none;
            transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
        }

        .form-input::placeholder { 
            color: #ccc; 
        }

        .form-input:focus {
            background: #fff;
            border-color: #0f0f0f;
            box-shadow: 0 0 0 3px rgba(15,15,15,0.04);
        }

        .form-input.error { 
            border-color: #e0a0a0; 
            background: #fff8f8; 
        }

        .form-error {
            margin-top: 8px;
            font-size: 0.7rem;
            color: #c62828;
        }

        .form-card-footer {
            padding: 20px 32px;
            border-top: 1px solid #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            background: #fafafa;
        }

        .form-btn-cancel {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #aaa;
            text-decoration: none;
            padding: 10px 20px;
            border: 1px solid #e8e8e8;
            border-radius: 30px;
            background: #fff;
            transition: color 0.2s, border-color 0.2s;
        }

        .form-btn-cancel:hover { 
            color: #0f0f0f; 
            border-color: #ccc; 
        }

        .form-btn-submit {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #fff;
            background: #0f0f0f;
            border: none;
            padding: 10px 24px;
            border-radius: 30px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .form-btn-submit:hover { 
            background: #333; 
        }
    </style>

    <div class="form-wrap">
        <div class="form-card">
            <div class="form-card-header">
                <div class="form-card-title">Edit Kategori</div>
                <div class="form-card-subtitle"><?php echo e($category->name); ?></div>
            </div>

            <form action="<?php echo e(route('admin.categories.update', $category->id)); ?>" method="POST">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                <div class="form-card-body">
                    <div class="form-field">
                        <label for="name" class="form-label">Nama Kategori</label>
                        <input
                            type="text"
                            name="name"
                            id="name"
                            value="<?php echo e(old('name', $category->name)); ?>"
                            placeholder="Masukkan nama kategori..."
                            class="form-input <?php echo e($errors->has('name') ? 'error' : ''); ?>"
                            required
                            autocomplete="off"
                        >
                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <div class="form-error"><?php echo e($message); ?></div>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>

                <div class="form-card-footer">
                    <a href="<?php echo e(route('admin.categories.index')); ?>" class="form-btn-submit">Batal</a>
                    <button type="submit" class="form-btn-submit">Perbarui</button>
                </div>
            </form>
        </div>

    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH C:\laragon\www\ecommerce_app\resources\views/admin/categories/edit.blade.php ENDPATH**/ ?>