<?php

namespace Database\Seeders\Tenant;

use App\Facades\Settings;
use Mtc\MercuryDataModels\VehicleType;
use Illuminate\Database\Seeder;

class EnabledVehicleTypesSettingSeeder extends Seeder
{
    public function run(): void
    {
        Settings::make([
            'tab' => 'Automotive',
            'section' => 'General',
            'group' => 'Vehicles',
            'name' => 'Enabled vehicle types',
            'config_key' => 'enabled-vehicle-types',
            'type' => 'list',
            'choices' => [
                ['value' => VehicleType::CAR->value, 'name' => 'Car'],
                ['value' => VehicleType::LCV->value, 'name' => 'LCV'],
                ['value' => VehicleType::MOTORCYCLE->value, 'name' => 'Motorcycle'],
                ['value' => VehicleType::CARAVAN->value, 'name' => 'Caravan'],
                ['value' => VehicleType::MOTORHOME->value, 'name' => 'Motorhome'],
                ['value' => VehicleType::CAMPERVAN->value, 'name' => 'Campervan'],
            ],
            'value' => [VehicleType::CAR->value, VehicleType::LCV->value],
            'description' => 'Vehicle types available when creating a new vehicle. '
                . 'Determines which type options are offered in the Add Vehicle popup.',
            'order' => 12,
        ]);
    }
}
