<?php

return [
    "type"           => "clientLogo",
    "model"          => App\Models\GenericBackoffice\ClientLogo::class,
    "label"          => "Client Logos",
    "label_singular" => "Client Logo",
    "group"          => "extras",
    "order"          => TRUE,
    "showSlug"       => TRUE,
    "showUri"        => FALSE,

    "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"          => "column_index",
            "label"         => "Column (for client board)",
            "type"          => "selectBox",
            "list"          => [
                1    => "Column #1",
                2    => "Column #2",
                3    => "Column #3"
            ],
            "defaultValue"  => "",
            "preValidation" => "trim",
            "validation"    => "",
            "inList"        => TRUE
        ],
        [
            "name"       => "logoImage",
            "label"      => "Image",
            "type"       => "mediaPicker",
            "minSize"    => 1, // means required = true
            "multiple"   => FALSE,
            "mediaType"  => "image",
            "validation" => "required"
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete", "order"
    ]
];
