<?php

    return [
        "type"           => "tab",
        "model"          => App\Models\Tab::class,
        "label"          => "Software Tabs",
        "label_singular" => "Software Tab",
        "group"          => "tabs",
        "order"          => TRUE,

        "search" => [
            "fields" => [
                "tab_title"
            ],
            "relations" => [
                "tabItems",
            ],
            "parentRelationships" => [
                "block",
            ]
        ],

        "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"          => "tab_title",
                "label"         => "Tab Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "sub_title",
                "label"         => "Sub Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"          => "tabItems",
                "label"         => "Tab Items",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["tabItems"],
                "order"         => true,
            ],
            
        ],
        "actions"        => [
            "edit", "insert", "delete", 'order'
        ]
    ];
