<?php

return [
    "type"           => "loaderCollection",
    "model"          => App\Models\GenericBackoffice\LoaderCollection::class,
    "label"          => "Loader Image Collection",
    "label_singular" => "Loader Image Collection",
    "group"          => "content",
    "order"          => TRUE,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Title",
            "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"      => "Images",
            "type"       => "mediaPicker",
            "minSize"    => 12, // means required = true
            "maxSize"    => 12,
            "multiple"   => TRUE,
            "mediaType"  => "image",
        ]
    ],
    "actions"   => [
        "edit"
    ]
];
