<?php
return array(
    "type" => "big_menu",
    "model" => "App\Models\BigMenu",
    "label" => "Main Menus Content",
    "label_singular" => "main Menu Content",
    "group" => "general",
    "template" => false,
    "order" => false,
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        /*
        array(
            "name" => "description",
            "label" => "description",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => ""
        ),
        */
        array(
            "name" => "type",
            "label" => "Type",
            "type" => "selectBox",
            "list" => array(
                "menu_content" => "Menu & content",
            ),
            "preValidation" => "trim",
            "validation" => "required|in:menu_content",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "placement" => "sidebar",
            "disabled"  => false
        ),
        /*
        array(
            "name" => "call_to_action",
            "label" => "call to action",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 30,
            "objectTypes" => array("project", "page", "solution", "case_study")
        ),
        */
        array(
            "name" => "highlight_title1",
            "label" => "highlight title 1",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
            "inList" => false,
            "search" => false,
            "sort" => false,
        ),
        array(
            "name" => "highlight_caption1",
            "label" => "highlight caption 1",
            "type" => "textBox",
            "maxLength" => 250,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:250",
            "inList" => false,
            "search" => false,
            "sort" => false,
        ),
        array(
            "name" => "highlight_cta1",
            "label" => "highlight cta 1",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => []
        ),
        /*
        array(
            "name" => "highlight_link1",
            "label" => "highlight link 1",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "type",
                "values" => array("solutions", "clients", "cf")
            )
        ),
        */
        array(
            "name" => "highlightImage1",
            "label" => "highlight image 1",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
        ),
        array(
            "name" => "highlight_title2",
            "label" => "highlight title 2",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
            "inList" => false,
            "search" => false,
            "sort" => false,
        ),
        array(
            "name" => "highlight_caption2",
            "label" => "highlight caption 2",
            "type" => "textBox",
            "maxLength" => 250,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:250",
            "inList" => false,
            "search" => false,
            "sort" => false,
        ),
        /*
        array(
            "name" => "highlight_link2",
            "label" => "highlight link 2",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "type",
                "values" => array("solutions", "clients")
            )
        ),
        */
        array(
            "name" => "highlight_cta2",
            "label" => "highlight cta 2",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 50,
            "objectTypes" => []
        ),
        array(
            "name" => "highlightImage2",
            "label" => "highlight image 2",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
        ),
        /*
        array(
            "name" => "highlight_title3",
            "label" => "highlight title 3",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "type",
                "values" => array("clients")
            )
        ),
        array(
            "name" => "highlight_caption3",
            "label" => "highlight caption 3",
            "type" => "textBox",
            "maxLength" => 250,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:250",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "type",
                "values" => array("clients")
            )
        ),
        array(
            "name" => "highlight_link3",
            "label" => "highlight link 3",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "parent" => array(
                "name" => "type",
                "values" => array("clients")
            )
        ),
        array(
            "name" => "highlightImage3",
            "label" => "highlight image 3",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
            "parent" => array(
                "name" => "type",
                "values" => array("clients")
            )
        ),
        */
        array(
            "name" => "banner_label",
            "label" => "Banner Label",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:100",
            "inList" => false,
            "search" => false,
            "sort" => false,
        ),
        array(
            "name" => "banner_cta",
            "label" => "Banner CTA",
            "type" => "link",
            "multiLanguage" => true,
            "required" => false,
            "maxLabel" => 100,
            "objectTypes" => []
        ),
        array(
            "name" => "bannerImage",
            "label" => "Banner Image",
            "type" => "mediaPicker",
            "mediaType" => "image",
            "placement" => "sidebar",
        ),
    ),
    "actions" => array(
        "insert", "duplicate",
        "edit",
        "delete"
    )
);
