<?php

return [
    "type"           => "socialMedia",
    "model"          => App\Models\GenericBackoffice\SocialMedia::class,
    "label"          => "Social medias",
    "label_singular" => "Social media",
    "group"          => "none",
    "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"          => "type",
            "label"         => "Type",
            "type"          => "selectBox",
            "list"          => [
                "linkedin"  => "LinkedIn",
                "facebook"  => "Facebook",
                "youtube"   => "Youtube",
                "twitter"   => "Twitter",
            ],
            "preValidation" => "trim",
            "validation"    => "required|in:linkedin,facebook,youtube,twitter",
            "placement"     => "sidebar"
        ],
        [
            "name"          => "link_info",
            "label"         => "Link",
            "type"          => "link",
            "maxLabel"      => 30,
            "multiLanguage" => TRUE,
            "objectTypes"   => [],
            "required"      => false,
        ],
    ],
    "actions"   => [
        "edit", "order", "insert", "delete"
    ]
];
