<?php

return [
    "type"           => "phrase",
    "model"          => App\Models\GenericBackoffice\Phrase::class,
    "label"          => "Phrases",
    "label_singular" => "Phrase",
    "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"          => "phrase",
            "label"         => "Phrase",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => "required|max:200",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "is_content_type_specific",
            "label"         => "Is Content Type specific",
            "type"          => "checkBox",
            "multiLanguage" => false,
            "inList"        => TRUE,
            "search"        => FALSE,
            "sort"          => TRUE
        ],
        [
            "name"          => "is_loader_title",
            "label"         => "Is loader title",
            "type"          => "checkBox",
            "multiLanguage" => false,
            "inList"        => TRUE,
            "search"        => FALSE,
            "sort"          => TRUE
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
