<?php

    return [
        "type"           => "minidocumentaries",
        "model"          => App\Models\MiniDocumentary::class,
        "label"          => "Mini Documentários",
        "label_singular" => "Mini Documentário",
        "hierarchic"     => false,
        "group"          => "outros",
        "order"          => true,
        "baseUri"        => [
            "pt" => "/mini-documentarios",
            "en" => "/mini-documentaries",
        ],
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Título",
                "type"          => "textBox",
                "maxLength"     => 255,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:255",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "description",
                "label"         => "Descrição",
                "type"          => "textArea",
                "multiLanguage" => true,
                "preValidation" => "trim",
                "validation"    => "",
            ],
            [
                "name"          => "video_link",
                "label"         => "Link do Vimeo",
                "type"          => "link",
                "multiLanguage" => true,
                "maxLabel"      => 150,
                "objectTypes"   => [],
            ],
            [
                "name"      => "thumbnail",
                "label"     => "Imagem de Capa",
                "type"      => "mediaPicker",
                "mediaType" => "image",
            ],
        ],
        "actions"        => [
            "insert", "order", "preview", "edit", "delete"
        ]
    ];
