<?php

return [
    "type"           => "properties",
    "model"          => App\Models\Property::class,
    "label"          => "Imóveis",
    "label_singular" => "Imóvel",
    "group"          => "outros",
    "order"          => true,
    "baseUri"        => [
        "pt" => "/imoveis",
        "en" => "/properties"
    ],
    "siteMap"        => [
        "pt" => "/imovel/",
        "en" => "/place/"
    ],
    "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"          => "geolocation",
            "label"         => "Localização geográfica",
            "type"          => "location",
            "required"      => true,
        ],
        [
            "name"          => "address",
            "label"         => "Morada",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "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"    => "max:150",
        ],
        [
            "name"          => "epigraphs",
            "label"         => "Epígrafes",
            "type"          => "multiplePicker",
            "allowInsert"   => false,
            "objectTypes"   => ["epigraphs"]
        ],
        [
            "name"          => "local_id",
            "label"         => "Localização",
            "type"          => "selectBox",
            "contentType"   => "locations",
            "placement"     => "sidebar",
            "allowInsert"   => true,
        ],
        [
            "name"          => "property_type_id",
            "label"         => "Tipo de imóvel",
            "type"          => "selectBox",
            "contentType"   => "propertytypes",
            "placement"     => "sidebar",
            "allowInsert"   => true,
        ],
        [
            "name"          => "themes",
            "label"         => "Temas",
            "type"          => "multiplePicker",
            "objectTypes"   => ["themes"],
            "longList"      => true,
            "placement"     => "sidebar",
        ],
        [
            "name"          => "classifications",
            "label"         => "Classificações",
            "type"          => "multiplePicker",
            "objectTypes"   => ["classifications"],
            "placement"     => "sidebar",
        ],
        [
            "name"          => "chronologies",
            "label"         => "Cronologias",
            "type"          => "multiplePicker",
            "objectTypes"   => ["chronologies"],
            "longList"      => true,
            "placement"     => "sidebar",
        ],

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