<?php

use App\Libs\Services\FcmService;

return [
    "type"           => "collection_catalogue",
    "model"          => App\Models\CollectionCatalogue::class,
    "label"          => "Collection catalogues",
    "label_singular" => "Collection catalogue",
    "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"          => "description",
            "label"         => "Description",
            "type"          => "textArea",
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => ""
        ],

        [
            "name"          => "image_label",
            "label"         => "Image Label",
            "type"          => "textBox",
            "maxLength"     => 255,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:255",
            "placement"     => "sidebar",
            "multiLanguage" => TRUE,
        ],
        [
            "name"          => "image",
            "label"         => "Image",
            "type"          => "mediaPicker",
            "multiple"      => FALSE,
            "mediaType"     => "image",
            "placement"     => "sidebar"
        ],
        [
            "name"          => "blocks",
            "label"         => "Blocks",
            "type"          => "multiplePicker",
            "longList"      => true,
            "allowInsert"   => true,
            "objectTypes"   => ["blocks"],
            "order"         => true
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
