<?php

return [
    "type"           => "work_groups",
    "model"          => App\Models\WorkGroup::class,
    "label"          => "Work Groups",
    "label_singular" => "Work Group",
    "group"          => "content types",
    "order"          => FALSE,
    "showSlug"       => TRUE,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "description",
            "label"         => "Description",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => "",
        ],
        [
            "name"      => "committee_id",
            "label"     => "Committee",
            "type"        => "selectBox",
            "contentType" => "committees",
            "preValidation" => "trim",
            "validation" => "required|integer|min:1",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "boxSearch" => true,
            "allowInsert" => true
        ],
        [
            "name"        => "documentLists",
            "label"       => "Document Lists",
            "type"        => "multiplePicker",
            "longList"    => TRUE,
            "allowInsert" => TRUE,
            "objectTypes" => ["document_lists"],
            "order"       => TRUE,
        ],
        [
            "name"          => "archive_active",
            "label"         => "Archive Active",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "placement"     => "sidebar",
        ],
        [
            "name"        => "documentListsArchive",
            "label"       => "Document Lists Archive",
            "type"        => "multiplePicker",
            "longList"    => TRUE,
            "allowInsert" => TRUE,
            "objectTypes" => ["document_lists"],
            "order"       => TRUE,
        ]
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
