<?php

namespace Database\Seeders\Tenant;

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

class VehicleMoveRequestSettingSeeder 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' => 'Sales',
                'group' => 'Vehicle Moves',
                'name' => 'Vehicle Move Fee',
                'config_key' => 'sales-vehicle-move-fee',
                'type' => 'int',
                'value' => 99,
                'feature' => 'vehicle-moves',
                'description' => 'Flat fee charged for a vehicle move request',
                'validation_rules' => [
                    'integer',
                    'min:0',
                ],
            ],
            [
                'tab' => 'Automotive',
                'section' => 'Sales',
                'group' => 'Vehicle Moves',
                'name' => 'Move Request Recipient Email Address(es)',
                'config_key' => 'sales-vehicle-move-team-emails',
                'type' => 'string',
                'value' => '',
                'feature' => 'vehicle-moves',
                'description' => 'Emails, comma separated',
            ],
        ];
    }
}
