<?php

use App\Models\LoginScreen;

return [
    "type"           => "login_screen",
    "model"          => App\Models\LoginScreen::class,
    "label"          => "Login Screens",
    "label_singular" => "Login Screen",
    "group"          => "Login",
    "order"          => FALSE,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "active",
            "label"         => "Active",
            "type"          => "checkBox",
            "inList"        => TRUE,
            'info'          => "If checked this will be the displayed screen. All others will be rendered inactive."
        ],
        [
            "name"          => "theme",
            "label"         => "Theme",
            "type"          => "selectBox",
            "list"          => LoginScreen::getThemes(),
            "defaultValue"  => "light",
            "preValidation" => "trim",
            "validation"    => "required",
            "placement"     => "sidebar"
        ],
        [
            "name"          => "description",
            "label"         => "Description",
            "type"          => "textArea",
            "multiLanguage" => TRUE,
            "preValidation" => "xss_clean|trim",
            "validation"    => ""
        ],
        [
            "name"          => "image",
            "label"         => "Image",
            "type"          => "mediaPicker",
            "multiple"      => FALSE,
            "mediaType"     => "image",
            "placement"     => "sidebar",
            "minSize"       => 1,
        ],

    ],
    "actions"        => [
        "edit", "order", "insert", "delete"
    ]
];
