<?php

use App\Libs\Services\FcmService;

return [
    "type"           => "artist",
    "model"          => App\Models\Artist::class,
    "label"          => "Artists",
    "label_singular" => "Artist",
    "group"          => "Exhibitions",
    "order"          => FALSE,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "share_url",
            "label"         => "Share url",
            "type"          => "textBox",
            "maxLength"     => 512,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "url|max:512",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE,
            'info'          => "This will be the corresponding link for this content in the website. If not provided a default will be assumed."
        ],
        [
            "name"          => "description",
            "label"         => "Description",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => ""
        ],
        [
            "name"          => "image",
            "label"         => "Image",
            "type"          => "mediaPicker",
            "multiple"      => FALSE,
            "mediaType"     => "image",
            "placement"     => "sidebar"
        ],
        [
            "name"          => "collections",
            "label"         => "Collections",
            "type"          => "multiplePicker",
            "longList"      => TRUE,
            "allowInsert"   => TRUE,
            "objectTypes"   => ["collection"],
            "order"         => TRUE,
            "maxSize"       => 100,
            "info"          => "Collections that include this artist",
        ],
        [
            "name"          => "tags",
            "label"         => "Tags",
            "type"          => "multiplePicker",
            "longList"      => TRUE,
            "allowInsert"   => TRUE,
            "objectTypes"   => ["tag"],
            "order"         => TRUE,
            "maxSize"       => 50,
            "placement"     => "sidebar",
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
