<?php

use App\Models\Tag;

return [
    "type"           => "tag",
    "model"          => App\Models\Tag::class,
    "label"          => "Tags",
    "label_singular" => "Tag",
    "group"          => "Exhibitions",
    "order"          => FALSE,
    "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"          => "type",
            "label"         => "Type",
            "type"          => "selectBox",
            "list"          => Tag::getTypes(),
            "defaultValue"  => "    ",
            "preValidation" => "trim",
            "validation"    => ""
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
