<?php
return array(
    "type" => "business_line",
    "model" => "App\Models\BusinessLine",
    "label" => "Business Lines",
    "label_singular" => "Business Line",
    "group" => "solutions",
    "template" => false,
    "order" => true,
    "websites" => array(1),
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "websiteSearch" => "primary"
        ),
        array(
            "name" => "short_description",
            "label" => "Description",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "icon",
            "label" => "Icon",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => 0,
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "200x200", "width" => 200, "height" => 200),
            )
            */
        ),
        array(
            "name" => "border_color",
            "label" => "Border Color",
            "type" => "colorPicker",
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "nullable|max:7"
        )
    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    )
);
