<?php

    return [
        "type"           => "occasions",
        "model"          => App\Models\Occasion::class,
        "label"          => "Eventos",
        "label_singular" => "Evento",
        "group"          => "taxonomias",
        "order"          => true,
        "baseUri"        => [
            "pt" => "/eventos",
            "en" => "/events",
        ],
        "siteMap"        => [
            "pt" => "/eventos/",
            "en" => "/events/"
        ],
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Título do Evento",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "excerpt",
                "label"         => "Excerto do Evento",
                "type"          => "textBox",
                "maxLength"     => 200,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:200",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "facebook",
                "label"         => "Link do Facebook",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "placement"     => "sidebar",
            ],
            [
                "name"          => "twitter",
                "label"         => "Link do Twitter",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "placement"     => "sidebar",
            ],
            [
                "name"          => "whatsapp",
                "label"         => "Link do Whatsapp",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "placement"     => "sidebar",
            ],
            [
                "name"          => "description",
                "label"         => "Descrição do evento",
                "type"          => "editor",
                "multiLanguage" => true,
                "preValidation" => "xss_clean|trim",
                "validation"    => "required",
            ],
            [
                "name"          => "location",
                "label"         => "Localização",
                "type"          => "location",
                "required"      => "true",
            ],
            [
                "name"      => "image",
                "label"     => "Imagem do evento",
                "type"      => "mediaPicker",
                "multiple"  => false,
                "mediaType" => "image"
            ],
            [
                "name"          => "images",
                "label"         => "Galeria",
                "type"          => "multiplePicker",
                "allowInsert"   => true,
                "longList"      => false,
                "objectTypes"   => ["imagelegends"],
            ],
            [
                "name"      => "date",
                "label"     => "Data do evento",
                "type"      => "datePicker",
                "inputType" => "date",
                "inList"    => true,
                "search"    => true,
                "sort"      => true
            ],
            [
                "name"          => "contacts",
                "label"         => "Contactos",
                "type"          => "editor",
                "multiLanguage" => true,
                "preValidation" => "xss_clean|trim",
            ],
            [
                "name"          => "meta_title",
                "label"         => "[Meta] Título",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "placement"     => "sidebar",
                "inList"        => false,
                "search"        => false,
                "sort"          => false
            ],
            [
                "name"          => "meta_description",
                "label"         => "[Meta] Descrição",
                "type"          => "textArea",
                "maxLength"     => 300,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:300",
                "placement"     => "sidebar",
                "inList"        => false,
                "search"        => false,
                "sort"          => false
            ],
            [
                "name"      => "metaImage",
                "label"     => "[Meta] Imagem",
                "type"      => "mediaPicker",
                "multiple"  => false,
                "mediaType" => "image",
                "placement" => "sidebar"
            ],
        ],
        "actions"        => [
            "order", "edit", "insert", "delete"
        ]
    ];
