<?php

    return [
        "type"                    => "project",
        "model"                   => App\Models\GenericBackoffice\Project::class,
        "label"                   => "Projects",
        "label_singular"          => "Project",
        "template"                => FALSE,
        "hierarchic"              => FALSE,
        "group"                   => "content",
        "order"                   => TRUE,
        "showUri"                 => TRUE,
        "baseUri"                 =>[
            'en' => '/work',
            'de' => '/arbeiten',
        ],
        "meta_title_update_field" => "project_title",
        "search"                  => [],
        "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"          => "project_title",
                "label"         => "Project Title (Visible in Work Page, Projects list)",
                "type"          => "textBox",
                "maxLength"     => 300,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:300",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "project_keywords",
                "label"         => "Project keywords (separated by :)",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "inList"        => FALSE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "blocks",
                "label"         => "Blocks",
                "type"          => "multiplePicker",
                "longList"      => true,
                "allowInsert"   => true,
                "objectTypes"   => ["block"],
                "order"         => true,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"       => "mainImage",
                "label"      => "Image",
                "type"       => "mediaPicker",
                "minSize"    => 1, // means required = true
                "multiple"   => FALSE,
                "mediaType"  => "image",
                "placement"  => "sidebar"
            ],
            [
                "name"          => "project_type",
                "label"         => "Type (For FE distinction)",
                "type"          => "selectBox",
                "list"          => [
                    "work"  => "Work as usual",
                    "case"  => "Special Case"
                ],
                "defaultValue"  => "work",
                "inList"        => TRUE,
                "search"        => FALSE,
                "sort"          => TRUE
            ],
            [
                "name"          => "link_label",
                "label"         => "Label for the link in the list",
                "type"          => "textBox",
                "maxLength"     => 100,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:100",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "meta_title",
                "label"         => "[Meta] Title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "meta_description",
                "label"         => "[Meta] Description",
                "type"          => "textArea",
                "maxLength"     => 300,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:300",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"          => "meta_keywords",
                "label"         => "[Meta] Keywords",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:150",
                "placement"     => "sidebar",
                "inList"        => FALSE,
                "search"        => FALSE,
                "sort"          => FALSE
            ],
            [
                "name"      => "metaImage",
                "label"     => "[Meta] Image",
                "type"      => "mediaPicker",
                "multiple"  => FALSE,
                "mediaType" => "image",
                "placement" => "sidebar"
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete", "order", "configuration"
        ]
    ];
