<?php

return [
    "type"           => "news_category",
    "model"          => App\Models\NewsCategory::class,
    "label"          => "News Categories",
    "label_singular" => "News Category",
    "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"          => "word_gender",
            "label"         => "Word Gender",
            "type"          => "selectBox",
            "list"          => [
                "f"   => "Female",
                "m"   => "Male",
            ],
            "defaultValue"  => "f",
            "preValidation" => "trim",
            "validation"    => "required",
            "info"          => "This is used to determine how the category will be mentioned in the notifications (novo / nova)"
        ],
    ],
    "actions"        => [
        "edit", "insert", "delete"
    ]
];
