<?php

    return [
        "type"           => "pack_type",
        "model"          => App\Models\PackType::class,
        "label"          => "Option Categories",
        "label_singular" => "Option Category",
        "group"          => "options",
        "order"          => FALSE,
        "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"          => "name",
                "label"         => "Pack Type Name",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "visual_title",
                "label"         => "Pack Type Title",
                "type"          => "textBox",
                "maxLength"     => 100,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:100",
            ],
            [
                "name"          => "tagline",
                "label"         => "Tagline",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => FALSE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
              "name"          => "description",
              "label"         => "Content",
              "type"          => "editor",
              "multiLanguage" => TRUE,
              "preValidation" => "xss_clean|trim",
              "validation"    => ""
            ],
            [
                "name"        => "packs",
                "label"       => "Packs",
                "type"        => "multiplePicker",
                "longList"    => TRUE,
                "allowInsert" => TRUE,
                "objectTypes" => ["pack"],
                "order"       => TRUE,
                "maxSize"     => 20
            ],
            [
                "name"          => "color",
                "label"         => "Highlight Color",
                "type"          => "colorPicker",
                "multiLanguage" => FALSE,
                "preValidation" => "xss_clean|trim",
                "validation"    => "required",
                "placement"     => "sidebar"
            ],
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
