<?php

namespace Database\Seeders\Tenant;

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

class SantanderProductStatusSettingSeeder extends Seeder
{
    public function run(): void
    {
        collect($this->data())
            ->each(fn ($setting) => Settings::make($setting));
    }

    private function data(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'Finance',
                'group' => 'Santander',
                'name' => 'Santander Product Whitelist',
                'config_key' => 'finance-santander-product-whitelist',
                'min_tier' => 'standard',
                'type' => 'string',
                'value' => '',
                'description' => 'Comma-separated list of Santander product IDs to use. Leave empty to use all products.',
            ],
            [
                'tab' => 'Automotive',
                'section' => 'Finance',
                'group' => 'Santander',
                'name' => 'Santander Product Status',
                'config_key' => 'finance-santander-product-status',
                'min_tier' => 'standard',
                'type' => 'component',
                'value' => 'SettingsSantanderProducts',
            ],
        ];
    }
}
