<?php

return [
    "type"           => "simpleLink",
    "model"          => App\Models\GenericBackoffice\SimpleLink::class,
    "label"          => "Links",
    "label_singular" => "Link",
    "group"          => "extras",
    "order"          => FALSE,
    "showSlug"       => TRUE,
    "showUri"        => FALSE,

    "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"          => "link_info",
            "label"         => "Link",
            "type"          => "link",
            "maxLabel"      => 160,
            "multiLanguage" => TRUE,
            "objectTypes"   => ["page", "blogArticle"],
            "required"      => TRUE,
        ],
        [
            "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",
            "validation"    => "required"
        ],
        [
            "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"  => "default_icon",
            "validation"    => "required"
        ],
        [
            "name"          => "link_icon_side",
            "label"         => "Link Icon side",
            "type"          => "selectBox",
            "list"          => [
                "left"  => "Left",
                "right" => "Right"
            ],
            "defaultValue"  => "left",
            "validation"    => "required"
        ],
        [
            "name"          => "link_text_size",
            "label"         => "Link Text size",
            "type"          => "selectBox",
            "list"          => [
                "largeTextLink"     => 'Large',
                "mediumTextLink"    => 'Medium',
                "smallTextLink"     => 'Small'
            ],
            "defaultValue"  => "mediumTextLink",
            "validation"    => "required"
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
