<?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',
            ],
        ];
    }
}
