<?php

return [
    "type"           => "manufacturer_group",
    "model"          => App\Models\ManufacturerGroup::class,
    "label"          => "content_types.manufacturer_group_plural",
    "label_singular" => "content_types.manufacturer_group_singular",
    "hierarchic"     => FALSE,
    "group"          => "none",
    "parent" => array(
        "field"         => "tracked_result_id",
        "contentType"   => "tracked_result"
    ),
    "search"         => null,
    "fields"         => [
        [
            "name"          => "title",
            "label"         => "content_types.manufacturer_group_name",
            "type"          => "textBox",
            "maxLength"     => 50,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:50",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "company",
            "label"         => "content_types.manufacturer_group_company",
            "type"          => "textBox",
            "maxLength"     => 255,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:255",
        ],
        [
            "name"          => "website_url",
            "label"         => "content_types.website",
            "type"          => "textBox",
            "maxLength"     => 255,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|url|max:255",
        ],
        [
            "name"          => "location",
            "label"         => "content_types.location",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:150",
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
