<?php

    return [
        "type"           => "videos",
        "model"          => App\Models\Video::class,
        "label"          => "Vídeos de bloco",
        "label_singular" => "Vídeo de bloco",
        "hierarchic"     => false,
        "group"          => "blocos",
        "order"          => true,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Título do vídeo",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "link",
                "label"         => "Link do Vimeo",
                "type"          => "link",
                "multiLanguage" => true,
                "maxLabel"      => 150,
                "objectTypes"   => [
                    'videos'
                ]
            ],
            [
                "name"          => "sub_title",
                "label"         => "Subtítulo",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"          => "image",
                "label"         => "Imagem de pré-visualiação",
                "type"          => "mediaPicker",
                "multiple"      => false,
                "mediaType"     => "image",
            ],
        ],
        "actions"        => [
            "order", "edit", "insert"
        ]
    ];
