<?php

    return [
        "type"           => "footer",
        "model"          => App\Models\Footer::class,
        "label"          => "Footer",
        "label_singular" => "Footer",
        "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"          => "footerLinks",
                "label"         => "Links",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["simpleLinks"],
                "order"         => true,
                "maxSize"       => 3,
                "minSize"       => 0,
            ],
            [
                "name"          => "socialMedias",
                "label"         => "Social Medias",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["socialMedia"],
                "order"         => true,
            ],
            [
                "name"          => "description_text",
                "label"         => "Description text",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"          => "imageLinks",
                "label"         => "Description Images",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["imageLinks"],
                "order"         => true,
            ],
            [
                "name"          => "copyright_text",
                "label"         => "Copyright text",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
            ],
            [
                "name"          => "copyrightImage",
                "label"         => "Copyright image",
                "type"          => "mediaPicker",
                "multiple"      => FALSE,
                "mediaType"     => "document",
                "allowed"       => "svg",
            ],
            [
                "name"          => "is_active",
                "label"         => "Active",
                "type"          => "checkBox",
                "multiLanguage" => FALSE,
                "placement"     => "sidebar",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ]
        ],
        "actions"   => [
            "edit"
        ]
    ];
