<?php

namespace Database\Seeders\Tenant;

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

class FeedDescriptionSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        collect($this->data())
            ->each(fn ($setting) => Settings::make($setting));
    }

    private function data(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'Sales Channels / Feeds',
                'group' => 'Feed Description',
                'name' => 'Use a separate description for feed exports',
                'config_key' => 'sales-channels-feed-description-enabled',
                'type' => 'boolean',
                'value' => false,
                'feature' => 'sales-channels',
                'description' => 'When enabled, sales-channel feeds (including Autotrader) use the vehicle\'s '
                    . '"Description for feeds" field instead of the standard description.',
            ],
        ];
    }
}
