

<?php $__env->startSection('header-title', 'Yeni Kategori Oluştur'); ?>

<?php $__env->startSection('content'); ?>
<div class="page-header">
    <div class="page-header-content">
        <div>
            <a href="<?php echo e(route('admin.chat-categories.index')); ?>" style="color:#6b7280;text-decoration:none;font-size:14px;font-weight:500;display:inline-flex;align-items:center;gap:4px;">
                ← Sohbet Kategorileri
            </a>
            <h1 class="page-title" style="margin-top:8px;">+ Yeni Kategori</h1>
        </div>
    </div>
</div>

<div style="background:white;border-radius:12px;padding:32px;border:1px solid #e5e7eb;box-shadow:0 1px 3px rgba(0,0,0,0.05);max-width:600px;">
    <form method="POST" action="<?php echo e(route('admin.chat-categories.store')); ?>">
        <?php echo csrf_field(); ?>

        <div style="margin-bottom:20px;">
            <label style="display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;">Kategori Adı *</label>
            <input type="text" name="name" value="<?php echo e(old('name')); ?>" required
                   style="width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color 0.2s;"
                   placeholder="Örn: Mülakat Hazırlığı">
            <?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 style="color:#dc2626;font-size:13px;margin-top:6px;"><?php echo e($message); ?></div>
            <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        </div>

        <div style="margin-bottom:20px;">
            <label style="display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;">Açıklama</label>
            <textarea name="description" rows="3"
                      style="width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;resize:vertical;transition:border-color 0.2s;"
                      placeholder="Kategori açıklaması (opsiyonel)"><?php echo e(old('description')); ?></textarea>
        </div>

        <div style="display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px;">
            <div>
                <label style="display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;">İkon (Emoji)</label>
                <input type="text" name="icon" value="<?php echo e(old('icon')); ?>" maxlength="50"
                       style="width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color 0.2s;"
                       placeholder="💬">
            </div>
            <div>
                <label style="display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;">Renk</label>
                <input type="color" name="color" value="<?php echo e(old('color', '#3b82f6')); ?>"
                       style="width:100%;height:46px;padding:4px;border:1px solid #d1d5db;border-radius:8px;cursor:pointer;">
            </div>
        </div>

        <div style="margin-bottom:20px;">
            <label style="display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:8px;">Sıra</label>
            <input type="number" name="order" value="<?php echo e(old('order', 0)); ?>" min="0" max="999"
                   style="width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:border-color 0.2s;">
            <p style="font-size:12px;color:#9ca3af;margin-top:6px;">Düşük değerler önce gösterilir (0 = en üst)</p>
        </div>

        <div style="margin-bottom:24px;">
            <label style="display:flex;align-items:center;gap:10px;cursor:pointer;">
                <input type="checkbox" name="is_active" value="1" checked
                       style="width:18px;height:18px;cursor:pointer;">
                <span style="font-size:14px;font-weight:600;color:#374151;">Aktif</span>
            </label>
        </div>

        <div style="display:flex;gap:12px;">
            <button type="submit" style="padding:12px 24px;background:linear-gradient(135deg,#3b82f6,#2563eb);color:white;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(59,130,246,.3);">
                💾 Kaydet
            </button>
            <a href="<?php echo e(route('admin.chat-categories.index')); ?>" style="padding:12px 24px;background:#f3f4f6;color:#374151;border:none;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;display:inline-block;">
                İptal
            </a>
        </div>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\askeribilgiler\resources\views\admin\chat-categories\create.blade.php ENDPATH**/ ?>