<?php

    return [
        "type"           => "country",
        "model"          => App\Models\Country::class,
        "label"          => "Countries",
        "label_singular" => "Country",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "general",
        "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"          => "iso_code",
                "label"         => "ISO code",
                "type"          => "textBox",
                "maxLength"     => 3,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:3",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "country_name",
                "label"         => "Country name",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
        ],
        "actions"        => [
            "insert", "edit", "delete", "order"
        ]
    ];
