<?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 Brand</h2>
     <?php $__env->endSlot(); ?>

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

        /* ── TOP BAR ── */
        .form-topbar {
            margin-bottom: 24px;
        }

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

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

        /* ── CARD ── */
        .form-card {
            background: #fff;
            border: 1px solid #ebebeb;
            border-radius: 12px;
            padding: 28px 32px;
        }

        /* ── 2 COLUMN LAYOUT ── */
        .form-two-columns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-field-full {
            grid-column: span 2;
        }

        /* ── FIELD ── */
        .form-field {
            margin-bottom: 20px;
        }

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

        .form-input,
        .form-textarea,
        .form-select {
            display: block;
            width: 100%;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.85rem;
            font-weight: 400;
            color: #1a1a1a;
            background: #fafafa;
            border: 1px solid #ebebeb;
            border-radius: 8px;
            padding: 10px 14px;
            outline: none;
            transition: border-color 0.2s, background 0.2s;
            box-sizing: border-box;
        }

        .form-input:focus,
        .form-textarea:focus,
        .form-select:focus {
            border-color: #0f0f0f;
            background: #fff;
        }

        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }

        .form-hint {
            font-size: 0.68rem;
            font-weight: 400;
            color: #ccc;
            margin-top: 4px;
        }

        .form-error {
            font-size: 0.68rem;
            font-weight: 400;
            color: #c62828;
            margin-top: 4px;
        }

        /* ── FILE INPUT ── */
        .form-file {
            display: block;
            width: 100%;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.8rem;
            color: #aaa;
            background: #fafafa;
            border: 1px dashed #e0e0e0;
            border-radius: 8px;
            padding: 10px 14px;
            cursor: pointer;
            box-sizing: border-box;
            transition: border-color 0.2s;
        }

        .form-file:hover { border-color: #bbb; }

        .form-file::file-selector-button {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            background: #0f0f0f;
            color: #fff;
            border: none;
            border-radius: 30px;
            padding: 6px 14px;
            margin-right: 12px;
            cursor: pointer;
            transition: background 0.2s;
        }

        .form-file::file-selector-button:hover { background: #333; }

        /* ── LOGO PREVIEW ── */
        .logo-preview {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 10px 14px;
            background: #fafafa;
            border: 1px solid #ebebeb;
            border-radius: 8px;
            margin-bottom: 12px;
        }

        .logo-preview-img {
            width: 48px;
            height: 48px;
            object-fit: contain;
            border-radius: 8px;
            background: #fff;
            border: 1px solid #ebebeb;
            padding: 4px;
        }

        .logo-preview-meta {
            flex: 1;
        }

        .logo-preview-label {
            font-size: 0.6rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #999;
            margin-bottom: 2px;
        }

        .logo-preview-hint {
            font-size: 0.7rem;
            font-weight: 400;
            color: #ccc;
        }

        /* ── DIVIDER ── */
        .form-divider {
            border: none;
            border-top: 1px solid #f0f0f0;
            margin: 24px 0 20px 0;
        }

        /* ── ACTIONS ── */
        .form-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 16px;
            margin-top: 8px;
        }

        .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-bottom: 2px;
            border-bottom: 1px solid transparent;
            transition: color 0.2s, border-color 0.2s;
        }

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

        .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;
            background: #0f0f0f;
            color: #fff;
            border: none;
            border-radius: 30px;
            padding: 10px 28px;
            cursor: pointer;
            transition: background 0.2s;
        }

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

    <div class="form-wrap">

        
        <div class="form-topbar">
        </div>

        <div class="form-card">
            <form action="<?php echo e(route('admin.brands.update', $brand->id)); ?>" method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <?php echo method_field('PUT'); ?>

                
                <div class="form-two-columns">
                    
                    <div class="form-field">
                        <label for="name" class="form-label">Nama Brand</label>
                        <input type="text" name="name" id="name" class="form-input"
                            value="<?php echo e(old('name', $brand->name)); ?>" required>
                        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="form-error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>

                    
                    <div class="form-field">
                        <label for="is_active" class="form-label">Status</label>
                        <select name="is_active" id="is_active" class="form-select">
                            <option value="1" <?php echo e(old('is_active', $brand->is_active) == true ? 'selected' : ''); ?>>Aktif</option>
                            <option value="0" <?php echo e(old('is_active', $brand->is_active) == false ? 'selected' : ''); ?>>Non-Aktif</option>
                        </select>
                        <?php $__errorArgs = ['is_active'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            <p class="form-error"><?php echo e($message); ?></p>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                    </div>
                </div>

                
                <div class="form-field">
                    <label for="description" class="form-label">Deskripsi</label>
                    <textarea name="description" id="description" class="form-textarea" rows="3"><?php echo e(old('description', $brand->description)); ?></textarea>
                    <?php $__errorArgs = ['description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <p class="form-error"><?php echo e($message); ?></p>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                
                <div class="form-field">
                    <label class="form-label">Logo Brand</label>

                    <?php if($brand->logo): ?>
                        <div class="logo-preview">
                            <img src="<?php echo e(asset('storage/' . $brand->logo)); ?>" alt="<?php echo e($brand->name); ?>" class="logo-preview-img">
                            <div class="logo-preview-meta">
                                <div class="logo-preview-label">Logo saat ini</div>
                                <div class="logo-preview-hint">Upload file baru untuk mengganti logo</div>
                            </div>
                        </div>
                    <?php endif; ?>

                    <input type="file" name="logo" id="logo" class="form-file" accept="image/*">
                    <?php $__errorArgs = ['logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <p class="form-error"><?php echo e($message); ?></p>
                    <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                </div>

                <hr class="form-divider">

                <div class="form-actions">
                    <a href="<?php echo e(route('admin.brands.index')); ?>" class="btn-submit">Batal</a>
                    <button type="submit" class="btn-submit">Perbarui Brand</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\pakaian\resources\views/admin/brands/edit.blade.php ENDPATH**/ ?>