<?php

    return [
        "type"           => "glossaryTerms",
        "model"          => App\Models\GlossaryTerm::class,
        "label"          => "Termos do Glossário",
        "label_singular" => "Termo do Glossário",
        "hierarchic"     => true,
        "group"          => "outros",
        "order"          => true,
        "baseUri"        => [
            "pt" => "/termos-do-glossario",
            "en" => "/glossary-terms",
        ],
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Termo do glossário",
                "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"         => "Descrição do termo",
                "type"          => "textArea",
                "maxLength"     => 1500,
                "multiLanguage" => true,
                "preValidation" => "xss_clean|trim",
                "validation"    => "required|max:1500"
            ]
        ],
        "actions"        => [
            "order", "preview"
        ]
    ];
