<?php

namespace Database\Seeders\Tenant;

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

class AutoTraderPublishUsedCarsSetting 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' => 'AutoTrader',
                'group' => 'Stock push from website to AutoTrader',
                'name' => 'Publish used car stock',
                'config_key' => 'auto-trader-connect-publish-used-cars',
                'type' => 'boolean',
                'value' => true,
                'description' => 'Specify if used car stock should automatically be marked to publish on AutoTrader',
            ],
            [
                'tab' => 'Automotive',
                'section' => 'AutoTrader',
                'group' => 'Stock push from website to AutoTrader',
                'name' => 'Publish new car stock to profile',
                'config_key' => 'auto-trader-connect-profile-new-cars',
                'type' => 'boolean',
                'value' => true,
                'description' => 'Specify if new car stock should automatically be marked to publish profile on AutoTrader',
            ],
            [
                'tab' => 'Automotive',
                'section' => 'AutoTrader',
                'group' => 'Stock push from website to AutoTrader',
                'name' => 'Publish used car stock to profile',
                'config_key' => 'auto-trader-connect-profile-used-cars',
                'type' => 'boolean',
                'value' => true,
                'description' => 'Specify if used car stock should automatically be marked to publish profile on AutoTrader',
            ],
        ];
    }
}
