<?php

    return [
        "type"           => "socialMedia",
        "model"          => App\Models\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"          => [
                    "facebook"  => "Facebook",
                    "youtube"   => "Youtube",
                    "twitter"   => "Twitter",
                ],
                "preValidation" => "trim",
                "validation"    => "required|in:facebook,youtube,twitter",
                "placement"     => "sidebar"
            ],
            [
                "name"          => "data",
                "label"         => "Link",
                "type"          => "link",
                "maxLabel"     => 30,
                "multiLanguage" => true,
                "objectTypes"   => [
                    "page", "product"
                ],
                "required"      => false,
            ],
        ],
        "actions"   => [
            "edit", "order", "insert", "delete"
        ]
    ];
