<?php

    return [
        "type"           => "accordionItems",
        "model"          => App\Models\AccordionItem::class,
        "label"          => "Accordion Items",
        "label_singular" => "Accordion Item",
        "group"          => "none",
        "parent" => array(
            "field" => "block_id",
            "contentType" => "blocks"
        ),
        "order"          => TRUE,
        "search" => [
            "fields" => [
                "title",
            ],
            "relations" => [
                "fileCards",
            ],
            "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"        => "fileCards",
                "label"       => "File Cards",
                "type"        => "singlePicker",
                "objectType"  => "fileCards",
                "order"       => TRUE,
            ],
        ],
        "actions"        => [
            "edit", "insert", "delete"
        ]
    ];
