<?php

namespace Database\Seeders;

use App\Models\HeaderFooterSetting;
use Illuminate\Database\Seeder;

class HeaderFooterSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        $settings = [
            [
                'section' => 'header',
                'label' => 'Header (Üst Menü)',
                'is_enabled' => true,
                'show_logo' => true,
                'show_search' => true,
                'show_navigation' => true,
                'show_auth_buttons' => true,
                'logo_url' => null,
                'custom_css' => null,
                'brand_description' => null,
                'show_social_links' => null,
                'show_platform_links' => null,
                'show_tools_links' => null,
                'show_corporate_links' => null,
                'custom_html' => null,
                'copyright_text' => null,
                'sort_order' => 0,
            ],
            [
                'section' => 'footer',
                'label' => 'Footer (Alt Menü)',
                'is_enabled' => true,
                'show_logo' => null,
                'show_search' => null,
                'show_navigation' => null,
                'show_auth_buttons' => null,
                'logo_url' => null,
                'custom_css' => null,
                'brand_description' => "Türkiye'nin lider askeri kariyer platformu. KPSS hazırlığından mülakat pratiklerine, forum tartışmalarından AI asistanına kadar her şey burada.",
                'show_social_links' => true,
                'show_platform_links' => true,
                'show_tools_links' => true,
                'show_corporate_links' => true,
                'custom_html' => null,
                'copyright_text' => null,
                'sort_order' => 1,
            ],
        ];

        foreach ($settings as $setting) {
            HeaderFooterSetting::updateOrCreate(
                ['section' => $setting['section']],
                $setting
            );
        }

        $this->command->info('Header/Footer settings seeded successfully.');
    }
}
