<?php

    return [
        "type"           => "reseller",
        "model"          => App\Models\Reseller::class,
        "label"          => "Resellers",
        "label_singular" => "Reseller",
        "template"       => false,
        "hierarchic"     => false,
        "group"          => "community",
        "order"          => true,
        "showSlug"       => true,
        "showUri"        => 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"          => "frontend_title",
                "label"         => "Frontend title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
            ],
            [
                "name"          => "block_title",
                "label"         => "Name",
                "type"          => "link",
                "maxLabel"      => 150,
                "multiLanguage" => true,
                "objectTypes"   => [
                    "page", "product"
                ],
            ],
            [
                "name"          => "email_address",
                "label"         => "Email address",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "email:filter|max:150",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "phone_number",
                "label"         => "Phone number",
                "type"          => "textBox",
                "maxLength"     => 50,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "max:50",
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "countries_id",
                "label"         => "Country",
                "type"          => "selectBox",
                "contentType"   => "country",
                "allowInsert"   => false,
                "inList"        => true,
                "search"        => true,
                "sort"          => true
            ],
            [
                "name"          => "image",
                "label"         => "Image",
                "type"          => "mediaPicker",
                "multiple"      => false,
                "mediaType"     => "image",
                "placement"     => "sidebar",
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete", "order"
        ]
    ];
