<?php

    return [
        "type"           => "keyMessage",
        "model"          => App\Models\GenericBackoffice\KeyMessage::class,
        "label"          => "Key Messages",
        "label_singular" => "Key Message",
        "group"          => "extras",
        "order"          => FALSE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,

        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Backend Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "message_title",
                "label"         => "Message Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "text",
                "label"         => "Message Text",
                "type"          => "textArea",
                "maxLength"     => 500,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:500",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ]
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
