<?php

namespace Database\Seeders\Tenant;

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

class VehicleTrimLinkUrlSeeder 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' => 'General',
                'group' => 'Trims',
                'name' => 'Vehicle Trim page URL path',
                'config_key' => 'vehicle-trims-url-path',
                'type' => 'string',
                'value' => '/{{FRANCHISE}}/new/{{NEW_VEHICLE}}/{{SLUG}}',
                'order' => 1,
                'min_tier' => 'enterprise',
                'description' => 'path - e.g. /{{FRANCHISE}}/new/{{NEW_VEHICLE}}/{{SLUG}} . '
                    . 'Supports FRANCHISE NEW_VEHICLE and SLUG placeholders. Used for URL generating in API, '
                    . 'must match the implementation in theme!',
            ],
        ];
    }
}
