<?php

return [
    "type"           => "epigraphs",
    "model"          => App\Models\Epigraph::class,
    "label"          => "Epígrafes",
    "label_singular" => "Epígrafe",
    "group"          => "outros",
    "order"          => true,
    "baseUri"        => [
        "pt" => "/epigrafes",
        "en" => "/epigraphs"
    ],
    "siteMap"        => [
        "pt" => "/epigrafe/",
        "en" => "/epigraph/"
    ],
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Título",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => true,
            "search"        => true,
            "sort"          => true
        ],
        [
            "name"          => "images",
            "label"         => "Imagens",
            "type"          => "mediaPicker",
            "multiple"      => TRUE,
            "mediaType"     => "image",
        ],
        [
            "name"          => "present_location",
            "label"         => "Local presente",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
        ],
        [
            "name"          => "location_found",
            "label"         => "Local do achado",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
        ],
        [
            "name"          => "description",
            "label"         => "Descrição",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
        ],
        [
            "name"          => "reading_suggestion",
            "label"         => "Sugestão de leitura",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
        ],
        [
            "name"          => "plunder_locations",
            "label"         => "Locais de espólio",
            "type"          => "editor",
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
        ],
        [
            "name"          => "excavation",
            "label"         => "Escavações",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
        ],
        [
            "name"          => "inscription_text",
            "label"         => "Texto de inscrição",
            "type"          => "textArea",
            "maxLength"     => 1000,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:1000",
        ],
        [
            "name"          => "inscription_translation",
            "label"         => "Tradução do texto de inscrição",
            "type"          => "textArea",
            "maxLength"     => 1000,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:1000",
        ],
        [
            "name"          => "themes",
            "label"         => "Temas",
            "type"          => "multiplePicker",
            "objectTypes"   => ["locations"],
            "placement"     => "sidebar",
            "allowInsert"   => true,
            "maxSize"       => 1,
        ],
        [
            "name"          => "classifications",
            "label"         => "Classificações",
            "type"          => "multiplePicker",
            "objectTypes"   => ["classifications"],
            "placement"     => "sidebar",
        ],
        [
            "name"          => "chronologies",
            "label"         => "Cronologias",
            "type"          => "multiplePicker",
            "objectTypes"   => ["chronologies"],
            "placement"     => "sidebar",
        ],

    ],
    "actions"        => [
        "order", "preview"
    ]
];
