<?php

    return [
        "type"           => "event",
        "model"          => App\Models\Event::class,
        "label"          => "events",
        "label_singular" => "event",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "community",
        "order"          => TRUE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,
        "baseUri"        =>[
            'en' => '/events',
        ],
        "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
            ],
            [
                "name"          => "small_title",
                "label"         => "Small title",
                "type"          => "textBox",
                "maxLength"     => 20,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:20",
            ],
            [
                "name"          => "block_title",
                "label"         => "frontend title",
                "type"          => "textBox",
                "maxLength"     => 50,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:50",
            ],
            [
                "name"          => "sub_title",
                "label"         => "sub title",
                "type"          => "textBox",
                "maxLength"     => 20,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:200",
            ],
            [
                "name"          => "info",
                "label"         => "Info",
                "type"          => "textBox",
                "maxLength"     => 140,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:140",
            ],
            [
                "name"          => "location",
                "label"         => "Location",
                "type"          => "textBox",
                "maxLength"     => 30,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:30",
            ],
            [
                "name"          => "link",
                "label"         => "Link",
                "type"          => "link",
                "maxLabel"     => 30,
                "multiLanguage" => TRUE,
                "objectTypes"   => [
                    "page", "product"
                ],
                "required"      => false,
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete", "order"
        ]
    ];
