<?php

    return [
        "type"           => "tabItems",
        "model"          => App\Models\TabItem::class,
        "label"          => "Tab Items",
        "label_singular" => "Tab Item",
        "group"          => "none",
        "order"          => TRUE,

        "search" => [
            "fields" => [
                "tab_item_title",
            ] ,
            "relations" => [
                "versions",
            ],
            "parentRelationships" => [
                "tab",
            ]
        ],
        
        "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_item_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"          => "versions",
                "label"         => "Versions",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["singleVersion"],
                "order"         => true,
            ],
            
        ],
        "actions"        => [
            "edit", "insert", "delete", 'order'
        ]
    ];
