<?php

return [
    "type"           => "nuts3_region",
    "model"          => App\Models\Nuts3Region::class,
    "label"          => "content_types.nuts3_region_plural",
    "label_singular" => "content_types.nuts3_region_singular",
    "group"          => "general",
    "search"         => [
        "title" => "title",
        "fields" => [
            "title",
        ],
        "relations" => [
        ],
    ],
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "native_name",
            "label"         => "Native Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "code",
            "label"         => "Nuts Code",
            "type"          => "textBox",
            "maxLength"     => 6,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:6",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "location",
            "label"         => "Location",
            "type"          => "location"
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
