<?php

namespace Database\Seeders\Tenant;

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

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

    private function data(): array
    {
        return [
            [
                'tab' => 'Automotive',
                'section' => 'Filter',
                'group' => 'General',
                'name' => 'Max weighted offer cards',
                'config_key' => 'catalog-offer-max-weighted',
                'type' => 'integer',
                'min_tier' => 'standard',
                'value' => 0,
                'order' => 8,
            ],
        ];
    }
}
