<?php

    return [
        "type"           => "timelineCards",
        "model"          => App\Models\TimelineCard::class,
        "label"          => "Timeline Cards",
        "label_singular" => "Timeline Card",
        "group"          => "none",
        "parent" => array(
            "field" => "block_id",
            "contentType" => "blocks"
        ),
        "order"          => TRUE,
        "search" => [
            "fields" => [
                "title",
                "description",
            ],
            "parentRelationships" => [
                "block",
            ]
        ],
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Year",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "description",
                "label"         => "Description",
                "type"          => "textArea",
                "maxLength"     => 500,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:500",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
        ],
        "actions"        => [
            "edit", "insert", "delete"
        ]
    ];
