<?php

    return [
        "type"           => "openPosition",
        "model"          => App\Models\GenericBackoffice\OpenPosition::class,
        "label"          => "Open Positions",
        "label_singular" => "Open Position",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "content",
        "order"          => TRUE,
        //  "showSlug" => true,
        "showUri"        => TRUE,
        "baseUri"        =>[
            'en' => '/careers',
            'de' => '/karriere',
        ],
        "search"         => [],
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Backend Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "position_title",
                "label"         => "Position Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "OpenPositionPoDetails",
                "label"         => "Position Details",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["openPositionDetail"],
                "order"         => true,
                "maxSize"       => 4,
                "minSize"       => 0,
            ],
            [
                "name"          => "OpenPositionPoSpecs",
                "label"         => "Position Specs",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["openPositionSpec"],
                "order"         => true,
                "maxSize"       => 4,
                "minSize"       => 0,
            ],
            [
                "name"          => "link_info",
                "label"         => "Link to CTA",
                "type"          => "link",
                "maxLabel"      => 160,
                "multiLanguage" => TRUE,
                "objectTypes"   => ["page"],
                "required"      => TRUE,
            ],
            [
                "name"          => "link_description",
                "label"         => "Link follow up",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "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"
            ],
            [
                "name"          => "blocks",
                "label"         => "Blocks",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["block"],
                "order"         => true
            ],
            [
                "name"          => "meta_title",
                "label"         => "[Meta] Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "meta_description",
                "label"         => "[Meta] Description",
                "type"          => "textArea",
                "maxLength"     => 300,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:300",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "meta_keywords",
                "label"         => "[Meta] Keywords",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"      => "metaImage",
                "label"     => "[Meta] Image",
                "type"      => "mediaPicker",
                "multiple"  => FALSE,
                "mediaType" => "image",
                "placement" => "sidebar"
            ]

        ],
        "actions"        => [
            "insert", "edit", "delete", "order", "configuration"
        ]
    ];
