<?php

    return [
        "type"           => "schematic",
        "model"          => App\Models\Schematic::class,
        "label"          => "Schematics",
        "label_singular" => "Schematic",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "products",
        "order"          => TRUE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,
        
        "search" => [
            "title" => "block_title",
            "fields" => [
                "block_title",
            ],
        ],

        "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"          => "block_title",
                "label"         => "Frontend title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [  
                "name"          => "models",
                "label"         => "Models",
                "type"          => "multiplePicker",
                "longList"      => false,
                "allowInsert"   => true,
                "objectTypes"   => ["productGroup"],
                "order"         => false
            ],
            [  
                "name"          => "links",
                "label"         => "Links",
                "type"          => "multiplePicker",
                "longList"      => false,
                "allowInsert"   => true,
                "objectTypes"   => ["simpleLinks"],
                "order"         => false
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete", "order"
        ]
    ];
