<?php

return [
    "type"           => "footer",
    "model"          => App\Models\GenericBackoffice\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"          => "socialMedias",
            "label"         => "Social Medias",
            "type"          => "multiplePicker",
            "longList"      => true,
            "allowInsert"   => true,
            "objectTypes"   => ["socialMedia"],
            "order"         => true,
        ],
        [
            "name"          => "address",
            "label"         => "EAE Address",
            "type"          => "textArea",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => "max:150",
        ],
        [
            "name"          => "email_contact",
            "label"         => "EAE email address (insert with mailto://...)",
            "type"          => "link",
            "maxLength"     => 30,
            "multiLanguage" => TRUE,
            "objectTypes"   => [],
            "required"      => TRUE,
        ],
        [
            "name"          => "phone_contact",
            "label"         => "EAE phone (insert with tel://...)",
            "type"          => "link",
            "maxLength"     => 30,
            "multiLanguage" => TRUE,
            "objectTypes"   => [],
            "required"      => TRUE,
        ],
        [
            "name"          => "copyright_text",
            "label"         => "Copyright text",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
        ],
        [
            "name"          => "legal_link_info",
            "label"         => "Legal Policies link",
            "type"          => "link",
            "maxLabel"      => 30,
            "multiLanguage" => TRUE,
            "objectTypes"   => ["page"],
            "required"      => false,
        ],
        [
            "name"          => "funny_phrase",
            "label"         => "Funny Phrase",
            "type"          => "textBox",
            "maxLength"     => 25,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:25",
        ]
    ],
    "actions"   => [
        "edit"
    ]
];
