<?php

return [
    "type"           => "information",
    "model"          => App\Models\Backoffice\Information::class,
    "label"          => "Information",
    "label_singular" => "Information",
    "group"          => "content",
    "order"          => TRUE,
    "showUri"        => TRUE,
    "isPage"         => TRUE,
    "search" => [
        "fields" => [
            "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"          => "subtitle",
            "label"         => "Subtitle",
            "type"          => "textBox",
            "maxLength"     => 250,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:250",
            "search"        => TRUE,
        ],
        [
            "name"          => "content",
            "label"         => "content",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "trim",
            "validation"    => ""
        ],
        [
            "name"          => "image",
            "label"         => "Image",
            "type"          => "mediaPicker",
            "multiple"      => FALSE,
            "mediaType"     => "image",
        ],
    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
