<?php

namespace Database\Seeders\Tenant;

use App\Facades\Settings;
use Illuminate\Database\Seeder;

class SeoSitemapSplitSettingSeeder extends Seeder
{
    public function run(): void
    {
        Settings::make([
            'tab' => 'Site',
            'section' => 'SEO',
            'group' => 'Sitemap',
            'name' => 'Split sitemap by category',
            'config_key' => 'seo-sitemap-split',
            'type' => 'boolean',
            'value' => false,
            'description' => 'When enabled, the sitemap is split into one file per category '
                . '(pages, blog/news, offers, new vehicles, dealerships, vehicles, facets) and '
                . 'sitemap-index.xml is generated to reference them. A single sitemap.xml is '
                . 'simpler to manage and works well for smaller sites, but split mode is more '
                . 'efficient for larger sites and easier for crawlers and the marketing team to work with.',
            'order' => 11,
        ]);
    }
}
