<?php

return [
    "type"           => "committees",
    "model"          => App\Models\Committee::class,
    "label"          => "Committees",
    "label_singular" => "Committee",
    "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"        => "documentLists",
            "label"       => "Document Lists",
            "type"        => "multiplePicker",
            "longList"    => TRUE,
            "allowInsert" => TRUE,
            "objectTypes" => ["document_lists"],
            "order"       => TRUE,
        ],
        [
            "name"        => "documentListsArchive",
            "label"       => "Document Lists Archive",
            "type"        => "multiplePicker",
            "longList"    => TRUE,
            "allowInsert" => TRUE,
            "objectTypes" => ["document_lists"],
            "order"       => TRUE,
        ],
        [
            "name"          => "type",
            "label"         => "Committee Type",
            "type"          => "selectBox",
            "list"          => [
                "standard" => "Standard",
                "legalCommittee" => "Legal Committee",
                "legalOpinions" => "Legal Opinions",
                "financeSubCommittee" => "Finance Sub Committee",
            ],
            "defaultValue"  => "standard",
            "preValidation" => "trim",
            "validation"    => "in:standard,legalCommittee,legalOpinions,financeSubCommittee",
        ],
        [
            "name"          => "archive_active",
            "label"         => "Archive Active",
            "type"          => "checkBox",
            "inList"        => TRUE,
            "placement"     => "sidebar",
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
