

<?php $__env->startSection('title', 'Header / Footer Yönetimi'); ?>

<?php $__env->startSection('content'); ?>
<div class="page-header">
    <div>
        <h1 class="page-title">Header / Footer Yönetimi</h1>
        <p class="page-subtitle">Sitenin üst menü (header) ve alt menü (footer) ayarlarını yönetin.</p>
    </div>
</div>

<?php if(session('success')): ?>
    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
<?php endif; ?>

<div class="settings-grid">
    <?php $__empty_1 = true; $__currentLoopData = $settings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $setting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
    <div class="settings-card">
        <div class="settings-card-header">
            <div class="settings-card-icon">
                <?php if($setting->section === 'header'): ?>
                    <svg width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h7"/>
                    </svg>
                <?php else: ?>
                    <svg width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M17 18h4M4 18h7"/>
                    </svg>
                <?php endif; ?>
            </div>
            <div class="settings-card-info">
                <h3 class="settings-card-title"><?php echo e($setting->label ?? $sections[$setting->section] ?? $setting->section); ?></h3>
                <span class="settings-card-key"><?php echo e($setting->section); ?></span>
            </div>
            <div class="settings-card-badges">
                <?php if($setting->is_enabled): ?>
                    <span class="badge badge-success">Aktif</span>
                <?php else: ?>
                    <span class="badge badge-danger">Pasif</span>
                <?php endif; ?>
            </div>
        </div>

        <div class="settings-card-body">
            <?php if($setting->section === 'header'): ?>
                <div class="toggle-list">
                    <div class="toggle-item <?php echo e($setting->show_logo ? 'on' : 'off'); ?>">
                        <span>Logo</span>
                        <span class="toggle-status"><?php echo e($setting->show_logo ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_navigation ? 'on' : 'off'); ?>">
                        <span>Navigasyon</span>
                        <span class="toggle-status"><?php echo e($setting->show_navigation ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_search ? 'on' : 'off'); ?>">
                        <span>Arama Kutusu</span>
                        <span class="toggle-status"><?php echo e($setting->show_search ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_auth_buttons ? 'on' : 'off'); ?>">
                        <span>Giriş / Kayıt Butonları</span>
                        <span class="toggle-status"><?php echo e($setting->show_auth_buttons ? '✓' : '✗'); ?></span>
                    </div>
                </div>
            <?php else: ?>
                <div class="toggle-list">
                    <div class="toggle-item <?php echo e($setting->show_social_links ? 'on' : 'off'); ?>">
                        <span>Sosyal Medya</span>
                        <span class="toggle-status"><?php echo e($setting->show_social_links ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_platform_links ? 'on' : 'off'); ?>">
                        <span>Platform Linkleri</span>
                        <span class="toggle-status"><?php echo e($setting->show_platform_links ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_tools_links ? 'on' : 'off'); ?>">
                        <span>Araçlar Linkleri</span>
                        <span class="toggle-status"><?php echo e($setting->show_tools_links ? '✓' : '✗'); ?></span>
                    </div>
                    <div class="toggle-item <?php echo e($setting->show_corporate_links ? 'on' : 'off'); ?>">
                        <span>Kurumsal Linkler</span>
                        <span class="toggle-status"><?php echo e($setting->show_corporate_links ? '✓' : '✗'); ?></span>
                    </div>
                </div>
            <?php endif; ?>
        </div>

        <div class="settings-card-footer">
            <a href="<?php echo e(route('admin.header-footer.edit', $setting)); ?>" class="btn btn-primary btn-sm">
                <svg width="14" height="14" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931z"/>
                </svg>
                Düzenle
            </a>
            <form method="POST" action="<?php echo e(route('admin.header-footer.reset', $setting)); ?>" onsubmit="return confirm('Ayarları sıfırlamak istediğinize emin misiniz?')">
                <?php echo csrf_field(); ?>
                <?php echo method_field('POST'); ?>
                <button type="submit" class="btn btn-outline btn-sm">
                    <svg width="14" height="14" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"/>
                    </svg>
                    Sıfırla
                </button>
            </form>
        </div>
    </div>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
    <div class="empty-state" style="grid-column:1/-1;">
        <p>Henüz ayar bulunamadı. Seeder çalıştırın.</p>
    </div>
    <?php endif; ?>
</div>

<style>
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
}
.page-title { font-size: 24px; font-weight: 700; color: #111827; margin: 0 0 4px; }
.page-subtitle { color: #6b7280; font-size: 14px; margin: 0; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.settings-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.settings-card-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb15, #3b82f615);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.settings-card-info { flex: 1; min-width: 0; }
.settings-card-title { font-size: 15px; font-weight: 600; color: #111827; margin: 0 0 2px; }
.settings-card-key { font-size: 12px; color: #9ca3af; font-family: monospace; }

.settings-card-badges { display: flex; gap: 6px; flex-shrink: 0; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-danger { background: #fee2e2; color: #dc2626; }

.settings-card-body { padding: 16px 20px; }

.toggle-list { display: flex; flex-direction: column; gap: 8px; }
.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}
.toggle-item.on { background: #f0fdf4; color: #15803d; }
.toggle-item.off { background: #fef2f2; color: #dc2626; }
.toggle-status { font-weight: 700; font-size: 14px; }

.settings-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; border: none; transition: all 0.15s; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); color: white; }
.btn-primary:hover { box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.btn-outline { background: white; border: 1px solid #d1d5db; color: #374151; }
.btn-outline:hover { border-color: #9ca3af; background: #f9fafb; }

.empty-state { text-align: center; padding: 48px; color: #9ca3af; font-size: 14px; }
</style>
<?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\header-footer\index.blade.php ENDPATH**/ ?>