<?php

use App\Models\Backoffice\RepeaterBlock;

return [
    "type"           => "repeater_block",
    "model"          => RepeaterBlock::class,
    "label"          => "content_types.repeater_block_plural",
    "label_singular" => "content_types.repeater_block_singular",
    "order"          => TRUE,
    "group"          => "none",
    "parent" => array(
        "field"         => "page_id",
        "contentType"   => "page"
    ),
    "search" => [
        "fields" => [
            "title",
            "description",
        ],
        "parentRelationships" => [
        ]
    ],
    "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
        ],
    ],
    "actions"        => [
        "edit", "insert", "delete"
    ]
];
