<?php

namespace Database\Seeders\Tenant;

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

class KeyloopImportAllMakesAndModelsSeeder 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' => 'Leasing',
                'group' => 'Keyloop Fleet Kompact',
                'name' => 'Import all makes and models',
                'description' => 'When enabled, ignores the per-make and per-model Keyloop eligibility checks and '
                    . 'imports every vehicle from the feed.',
                'config_key' => 'leasing-keyloop-fleet-kompact-import-all-makes-models',
                'type' => 'boolean',
                'value' => false,
            ],
        ];
    }
}
