<?php

    return [
        "type"           => "international_rate",
        "model"          => App\Models\InternationalRate::class,
        "label"          => "International Rates",
        "label_singular" => "International Rate",
        "group"          => "tariffs",
        "order"          => 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"        => "countries",
                "label"       => "Countries",
                "type"        => "multiplePicker",
                "longList"    => TRUE,
                "allowInsert" => FALSE,
                "objectTypes" => ["country"],
                "order"       => TRUE,
                "maxSize"     => 300
            ],
            [
                "name"          => "price_landline",
                "label"         => "Landline Call Price",
                "type"          => "textBox",
                "maxLength"     => 8,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "numeric|nullable|max:150",
                "nullable"      => FALSE,
                "inList"        => TRUE
            ],
            [
                "name"          => "price_mobile",
                "label"         => "Mobile Call Price",
                "type"          => "textBox",
                "maxLength"     => 8,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "numeric|nullable|max:150",
                "nullable"      => FALSE,
                "inList"        => TRUE
            ],
            [
                "name"          => "price_sms",
                "label"         => "SMS Price",
                "type"          => "textBox",
                "maxLength"     => 8,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "numeric|nullable|max:150",
                "nullable"      => FALSE,
                "inList"        => TRUE
            ],
            [
                "name"          => "price_mms",
                "label"         => "MMS Price",
                "type"          => "textBox",
                "maxLength"     => 8,
                "multiLanguage" => FALSE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "numeric|nullable|max:150",
                "nullable"      => FALSE,
                "inList"        => TRUE
            ]
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
