<?php

return [
    "type"           => "teamMember",
    "model"          => App\Models\GenericBackoffice\TeamMember::class,
    "label"          => "Team Members",
    "label_singular" => "Team Member",
    "template"       => FALSE,
    "hierarchic"     => FALSE,
    "group"          => "content",
    "order"          => TRUE,
    //  "showSlug" => true,
    "showUri"        => TRUE,
    "baseUri"        =>[
        'en' => '/team',
        'de' => '/team',
    ],
    "search"         => [],
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "link_info",
            "label"         => "Link to LinkedIn",
            "type"          => "link",
            "multiLanguage" => TRUE,
            "maxLabel"      => 25,
            "objectTypes"   => []
        ],
        [
            "name"          => "link_effect",
            "label"         => "Link effect",
            "type"          => "selectBox",
            "list"          => [
                "wavy_arrow"           => 'Wavy Arrow',
                "top_right_arrow_icon" => 'Top Right Arrow Icon',
                "hyperlink_icon"       => 'Hyperlink Icon',
                "top_arrow_icon"       => 'Top Arrow Icon',
                "bottom_arrow_icon"    => 'Bottom Arrow Icon',
                "left_arrow_icon"      => 'Left Arrow Icon',
                "right_arrow_icon"     => 'Right Arrow Icon',
                "download_icon"        => 'Download Icon'
            ],
            "defaultValue"  => "wavy_arrow"
        ],
        [
            "name"          => "link_icon_size",
            "label"         => "Link Icon size",
            "type"          => "selectBox",
            "list"          => [
                "extra_large_icon"   => 'Extra Large (56px)',
                "large_icon"         => 'Large (42px)',
                "xmedium_icon"       => 'X Medium (24px)',
                "medium_icon"        => 'Medium (16px)',
                "small_icon"         => 'Small (10px)',
                "default_icon"       => 'Default (22px)'
            ],
            "defaultValue"  => "medium_icon"
        ],
        [
            "name"          => "link_icon_side",
            "label"         => "Link Icon side",
            "type"          => "selectBox",
            "list"          => [
                "left"  => "Left",
                "right" => "Right"
            ],
            "defaultValue"  => "right"
        ],
        [
            "name"          => "link_text_size",
            "label"         => "Link Text size",
            "type"          => "selectBox",
            "list"          => [
                "largeTextLink"     => 'Large',
                "mediumTextLink"    => 'Medium',
                "smallTextLink"     => 'Small'
            ],
            "defaultValue"  => "mediumTextLink"
        ],
        [
            "name"       => "memberImage",
            "label"      => "Image",
            "type"       => "mediaPicker",
            "minSize"    => 1, // means required = true
            "multiple"   => FALSE,
            "mediaType"  => "image",
            "placement"  => "sidebar"
        ],
        [
            "name"          => "role",
            "label"         => "Role in Team",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "question",
            "label"         => "Question",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "answer",
            "label"         => "Answer",
            "type"          => "textBox",
            "maxLength"     => 200,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:200",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete", "order", "configuration"
    ]
];
