<?php

namespace Database\Seeders\Tenant;

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

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

    private function data(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'General',
                'group' => 'Vehicles',
                'name' => 'Hide prices for sold vehicles',
                'config_key' => 'vehicle-hide-sold-prices',
                'type' => 'boolean',
                'value' => false,
                'description' => 'When enabled, prices, finance examples, and deposit '
                    . 'will be hidden for sold vehicles on the website',
                'order' => 12,
            ],
        ];
    }
}
