<?php

    return [
        "type"           => "country",
        "model"          => App\Models\Country::class,
        "label"          => "Countries",
        "label_singular" => "Country",
        "group"          => "general",
        "order"          => TRUE,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Title",
                "type"          => "textBox",
                "maxLength"     => 300,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:300",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "code",
                "label"         => "Country ISO code",
                "type"          => "textBox",
                "maxLength"     => 10,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:10",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "region",
                "label"         => "Tarif Region",
                "type"          => "selectBox",
                "list" => array(
                    "0" => "Base Country",
                    "1" => "Region 1",
                    "2" => "Region 2",
                    "3" => "Region 3"
                ),
                "placement" => "sidebar",
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|in:0,1,2,3",
                "inList"        => TRUE
            ]
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
