<?php

    return [
        "type"           => "categories",
        "model"          => "Category",
        "label"          => "Categories",
        "label_singular" => "Category",
        "group"          => "taxonomy",
        "order"          => TRUE,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Category Name",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name" => "is_on_map",
                "label" => "Show on map?",
                "type" => "checkBox",
                "placement" => "sidebar",
                "inList"        => TRUE,
            ],
            [
                "name" => "is_on_radio",
                "label" => "Show on radio?",
                "type" => "checkBox",
                "placement" => "sidebar",
                "inList"        => TRUE,
            ],
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
