<?php

return [
    "type"           => "clause",
    "model"          => App\Models\Clause::class,
    "label"          => "Clauses",
    "label_singular" => "Clause",
    "showStatus"     => FALSE,
    "showSlug"       => FALSE,
    "group"          => "content types",
    "order"          => FALSE,
    "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,
            "info"          => "for example: Failure of a Control and Profit Transfer Agreement",
        ],
        [
            "name"          => "clause",
            "label"         => "Clause",
            "info"          => "for example: §17.2 (g)",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "clause_wording",
            "label"         => "Clause Wording",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
        ],
        [
            "name"          => "description",
            "label"         => "Description",
            "type"          => "editor",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
        ],
    ],
    "actions"        => [
        "edit", "insert", "delete"
    ]
];
