<?php

return [
    "type"           => "openPositionDetail",
    "model"          => App\Models\GenericBackoffice\OpenPositionDetail::class,
    "label"          => "Open Position Details",
    "label_singular" => "Open Position Detail",
    "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"          => "detail_title",
            "label"         => "Detail Title",
            "type"          => "textBox",
            "maxLength"     => 50,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:50",
            "inList"        => TRUE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "text",
            "label"         => "Detail Text",
            "type"          => "textArea",
            "maxLength"     => 100,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:100",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ]
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
