<?php

return [
    "type"           => "procedure_type",
    "model"          => App\Models\ProcedureType::class,
    "label"          => "content_types.procedure_type_plural",
    "label_singular" => "content_types.procedure_type_singular",
    "group"          => "competitions",
    "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"          => "is_active",
            "label"         => "Is Active",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "is_open_to_students",
            "label"         => "Is Open to Students",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "in_competitions_filter",
            "label"         => "Comp. Filter",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "in_results_filter",
            "label"         => "Results Filter",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "is_announcement",
            "label"         => "Is Announcement",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "ted_types_map",
            "label"         => "TED Procedure Code mapping",
            "type"          => "textBox",
            "maxLength"     => 255,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:255",
            "info"          => "Comma separated TED procedure codes that map to this entity (eg: 'comp-dial,comp-tend,restricted')"
        ],
        [
            "name"          => "ted_notice_types_map",
            "label"         => "TED Notice Type Code mapping",
            "type"          => "textBox",
            "maxLength"     => 255,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:255",
            "info"          => "Comma separated TED notice type codes that map to this entity (eg: 'comp-dial,comp-tend,restricted')"
        ],
        [
            "name"          => "migration_type_id",
            "label"         => "Migration type ID",
            "type"          => "textBox",
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|integer"
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
