<?php

namespace Database\Seeders\Tenant;

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

class CapUseSectorForBodyTypeSettingSeeder 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' => 'Specification / Feature Synchronization',
                'group' => 'CAP',
                'name' => 'Use CAP sector to correct vehicle body type',
                'config_key' => 'vehicle-spec-providers-cap-use-sector-for-body-type',
                'type' => 'boolean',
                'value' => false,
                'description' => 'When enabled, the CAP sector lookup pulls in a more accurate body type which maps to the vehicle body type, '
                    . 'overriding the value supplied by the stock feed or other sources. Only takes effect when CAP is enabled.',
                'order' => 31,
            ],
        ];
    }
}
