<?php

    return [
        "type"           => "generalCard",
        "model"          => App\Models\GeneralCard::class,
        "label"          => "Cards",
        "label_singular" => "Card",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "content",
        "order"          => FALSE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,

        "search" => [
            "fields" => [
                "block_title",
            ],
            "parentRelationships" => [
                "block"
            ],
        ],

        "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"          => "block_title",
                "label"         => "Frontend Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
            ],
            [
                "name"          => "small_title",
                "label"         => "small Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"          => "sub_title",
                "label"         => "Sub title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"      => "highlightImage",
                "label"     => "Highlight image",
                "type"      => "mediaPicker",
                "multiple"  => FALSE,
                "mediaType" => "image",
            ],
            [
                "name"          => "imageLinks",
                "label"         => "Links",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["imageLinks"],
                "order"         => true,
                "maxSize"       => 6,
                "minSize"       => 0,
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
