<?php

namespace Database\Seeders\Tenant;

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

class AutoTraderHubExportedFieldsSettingSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Settings::make([
            'tab' => 'Automotive',
            'section' => 'Autotrader',
            'group' => 'Autotrader Hub',
            'name' => 'Optional fields to export',
            'config_key' => 'auto-trader-hub-exported-optional-fields',
            'type' => 'list',
            'choices' => [
                ['value' => 'make', 'name' => 'Make'],
                ['value' => 'model', 'name' => 'Model'],
                ['value' => 'derivative_id', 'name' => 'Derivative ID'],
                ['value' => 'trim', 'name' => 'Trim'],
                ['value' => 'body_type', 'name' => 'Body Type'],
                ['value' => 'fuel_type', 'name' => 'Fuel Type'],
                ['value' => 'transmission_type', 'name' => 'Transmission Type'],
                ['value' => 'drivetrain', 'name' => 'Drivetrain'],
                ['value' => 'seats', 'name' => 'Seats'],
                ['value' => 'doors', 'name' => 'Doors'],
                ['value' => 'colour', 'name' => 'Colour'],
                ['value' => 'co2', 'name' => 'CO2 Emissions'],
                ['value' => 'vehicle_length', 'name' => 'Vehicle Length'],
                ['value' => 'engine_size_cc', 'name' => 'Engine Size'],
                ['value' => 'battery_capacity_kwh', 'name' => 'Battery Capacity'],
                ['value' => 'battery_range', 'name' => 'Battery Range'],
                ['value' => 'previous_owner_count', 'name' => 'Previous Owner Count'],
                ['value' => 'rrp_price', 'name' => 'RRP Price'],
                ['value' => 'admin_fee', 'name' => 'Admin Fee'],
                ['value' => 'features', 'name' => 'Features'],
                ['value' => 'images', 'name' => 'Images'],
                ['value' => 'video_url', 'name' => 'Video URL'],
                ['value' => 'exDemo', 'name' => 'Ex-Demo Flag'],
                ['value' => 'vat_scheme', 'name' => 'VAT Scheme'],
            ],
            'value' => null,
            'description' => 'Select which optional fields are included when vehicles are exported to '
                . 'Autotrader Hub. Unselected fields will not be sent, so clients managing those fields '
                . 'directly in Autotrader Hub will not have them overwritten. Mandatory fields are always '
                . 'exported. Leave unconfigured to export all fields (default behaviour).',
            'order' => 50,
        ]);
    }
}
