<?php

    return [
        "type"           => "fileCards",
        "model"          => App\Models\FileCard::class,
        "label"          => "File Cards",
        "label_singular" => "File Card",
        "group"          => "none",
        "parent" => array(
            "field" => "accordion_item_id",
            "contentType" => "accordionItems"
        ),
        "order"          => TRUE,
        "search" => [
            "title" => "title",
            "fields" => [
                "title",
                "subtitle",
                "description",
            ],
        ],
        "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"          => "subtitle",
                "label"         => "Subtitle",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
            ],
            [
                "name"          => "description",
                "label"         => "Description",
                "type"          => "editor",
                "multiLanguage" => TRUE,
                "preValidation" => "xss_clean|trim",
                "validation"    => "",
            ],
            [
                "name"          => "document",
                "label"         => "Document",
                "type"          => "mediaPicker",
                "multiple"      => FALSE,
                "mediaType"     => ["document"],
                "placement"     => "sidebar",
            ],
        ],
        "actions"        => [
            "edit", "insert", "delete"
        ]
    ];
