<?php

return [
    "type"           => "staticDataTables",
    "model"          => App\Models\StaticDataTable::class,
    "label"          => "Static Data Tables",
    "label_singular" => "Static Data Table",
    "group"          => "content types",
    "order"          => FALSE,
    "search" => [
        "title" => "title",
        "fields" => [
            "title",
            "table_type",
        ],
    ],
    "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"          => "table_type",
            "label"         => "Table Type",
            "type"          => "selectBox",
            "list"          => [
                "err" => "eRR Data Tables",
                "ecm" => "eCM Data Tables",
            ],
            "defaultValue"  => "err",
            "preValidation" => "trim",
            "validation"    => "in:err,ecm",
        ],
        [
            "name"          => "document",
            "label"         => "Document",
            "type"          => "mediaPicker",
            "multiple"      => FALSE,
            "mediaType"     => ["excel"],
            "placement"     => "sidebar",
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
