<?php
return array(
    "type" => "blog_category",
    "model" => "App\Models\BlogCategory",
    "label" => "Blog Categories",
    "label_singular" => "Blog Category",
    "group" => "blog",
    "template" => false,
    "order" => true,
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "color",
            "label" => "Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:7",
            "placement" => "sidebar"
        ),
        array(
            "name" => "in_filter",
            "label" => "Include in Filter?",
            "type" => "checkBox",
            "placement" => "sidebar"
        ),
        array(
            "name" => "media",
            "label" => "cover media",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "relatedContentType" => 'blog_category'
        )
    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    )
);
