<?php
return array(
    "type" => "contact",
    "model" => "App\Models\Contact",
    "label" => "contacts",
    "label_singular" => "contact",
    "group" => "general",
    "template" => false,
    "order" => false,
    "shareable" => "none",
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "subtitle",
            "label" => "subtitle",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "name",
            "label" => "contact name",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:50",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "job_position",
            "label" => "Position",
            "type" => "textBox",
            "maxLength" => 50,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:50"
        ),
        array(
            "name" => "email",
            "label" => "e-mail",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:255",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "phone",
            "label" => "phone number",
            "type" => "textBox",
            "maxLength" => 45,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:45",
            "inList" => true,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "image",
            "label" => "photo",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "200x200", "width" => 200, "height" => 200),
            )
            */
        )
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
