<?php

namespace Database\Seeders\Tenant;

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

class FinanceBatchIncludeNewVehiclesSettingSeeder 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' => 'General',
                'name' => 'Include new vehicles in batch update even if no identifier',
                'config_key' => 'finance-batch-include-new-vehicles',
                'type' => 'boolean',
                'value' => false,
                'order' => 12,
                'description' => 'Include new vehicles without VRM or CAP ID in batch finance updates',
            ],
        ];
    }
}
