<?php

namespace Database\Seeders\Tenant;

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

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

    private function getData(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'General',
                'group' => 'New Vehicles',
                'name' => 'Trim page enquiry form',
                'config_key' => 'vehicle-trim-enquiry-form-id',
                'type' => 'string',
                'value' => null,
                'source' => 'forms',
                'description' => 'Select the form to display on new car trim pages',
            ],
        ];
    }
}
