<?php

return [
    "type"           => "map_item",
    "model"          => App\Models\MapItem::class,
    "label"          => "Map Items",
    "label_singular" => "Map Item",
    "group"          => "map",
    "order"          => FALSE,
    "showSlug"       => FALSE,
    "baseUri"        =>[
        'en' => '/map-item',
    ],
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Country",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "year",
            "label"         => "Year",
            "type"          => "textBox",
            "maxLength"     => 4,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:4",
        ],
        [
            "name"          => "aet",
            "label"         => "Automatic Early Termination",
            "type"          => "selectBox",
            "list"          => [
                "shall_apply" => "shall apply",
                "shall_not_apply" => "shall not apply",
                "enforceable_but_not_required" => "enforceable but not required",
            ],
            "defaultValue"  => "shall_apply",
            "preValidation" => "trim",
            "validation"    => "nullable|in:shall_apply,shall_not_apply,enforceable_but_not_required",
        ],
        [
            "name"          => "aet_comment",
            "label"         => "Automatic Early Termination Comment",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => "",
        ],
        [
            "name"        => "mapInformations",
            "label"       => "Map Information",
            "type"        => "singlePicker",
            "objectType"  => "map_information",
        ],
    ],
    "actions"        => [
        "edit"
    ]
];
