<?php

    return [
        "type"           => "contactAddress",
        "model"          => App\Models\ContactAddress::class,
        "label"          => "Contact Addresses",
        "label_singular" => "Contact Address",
        "template"       => false,
        "hierarchic"     => false,
        "group"          => "general",
        "order"          => true,
        "showSlug"       => true,
        "showUri"        => false,

        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Title",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:250",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "frontend_title",
                "label"         => "Frontend title",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
            ],
            [
                "name"          => "address",
                "label"         => "Address",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
            ],
            [
                "name"          => "zipcode",
                "label"         => "Zipcode",
                "type"          => "textBox",
                "maxLength"     => 20,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:20",
            ],
            [
                "name"          => "city",
                "label"         => "City",
                "type"          => "textBox",
                "maxLength"     => 60,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:60",
            ],
            [
                "name"          => "country",
                "label"         => "Country",
                "type"          => "textBox",
                "maxLength"     => 100,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:100",
            ],
            [
                "name"          => "full_number",
                "label"         => "Phone number",
                "type"          => "textBox",
                "maxLength"     => 60,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:60",
            ],
            [
                "name"          => "contact_email",
                "label"         => "Contact email",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "sales_email",
                "label"         => "Sales email",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "support_email",
                "label"         => "Support email",
                "type"          => "textBox",
                "maxLength"     => 250,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:250",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "is_main_address",
                "label"         => "Main address",
                "type"          => "checkBox",
                "multiLanguage" => false,
                "placement"     => "sidebar",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ]
        ],
        "actions"        => [
            "insert", "edit", "delete", "order"
        ]
    ];
