<?php

return [
    "type"           => "global_configuration",
    "model"          => App\Models\GlobalConfiguration::class,
    "label"          => "content_types.global_configuration_plural",
    "label_singular" => "content_types.global_configuration_singular",
    "group"          => "none",
    "search"         => [
        "title" => "title",
        "fields" => [
            "title",
        ],
        "relations" => [
        ],
    ],
    "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"        => "competitionsTopAds",
            "label"       => "Competitions Top Ads",
            "type"        => "multiplePicker",
            "allowInsert" => FALSE,
            "objectTypes" => ["advertisement"],
            "order"       => TRUE,
        ],
        [
            "name"          => "competitions_top_ads_type",
            "label"         => "Competitions Top Ads Type",
            "type"          => "selectBox",
            "list"          => [
                "slider"    => "Slider",
                "bar"       => "Bar",
            ],
            "defaultValue"  => "bar",
            "mandatory"     => FALSE,
            "inList"        => FALSE,
            "preValidation" => "trim",
            "validation"    => ""
        ],
        [
            "name"        => "resultsTopAds",
            "label"       => "Results Top Ads",
            "type"        => "multiplePicker",
            "allowInsert" => FALSE,
            "objectTypes" => ["advertisement"],
            "order"       => TRUE,
        ],
        [
            "name"          => "results_top_ads_type",
            "label"         => "Results Top Ads Type",
            "type"          => "selectBox",
            "list"          => [
                "slider"    => "Slider",
                "bar"       => "Bar",
            ],
            "defaultValue"  => "bar",
            "mandatory"     => FALSE,
            "inList"        => FALSE,
            "preValidation" => "trim",
            "validation"    => ""
        ],
        [
            "name"        => "jobsTopAds",
            "label"       => "Jobs Top Ads",
            "type"        => "multiplePicker",
            "allowInsert" => FALSE,
            "objectTypes" => ["advertisement"],
            "order"       => TRUE,
        ],
        [
            "name"          => "jobs_top_ads_type",
            "label"         => "Jobs Top Ads Type",
            "type"          => "selectBox",
            "list"          => [
                "slider"    => "Slider",
                "bar"       => "Bar",
            ],
            "defaultValue"  => "bar",
            "mandatory"     => FALSE,
            "inList"        => FALSE,
            "preValidation" => "trim",
            "validation"    => ""
        ],
        [
            "name"        => "officeProfilesTopAds",
            "label"       => "Office Profiles Top Ads",
            "type"        => "multiplePicker",
            "allowInsert" => FALSE,
            "objectTypes" => ["advertisement"],
            "order"       => TRUE,
        ],
        [
            "name"          => "office_profiles_top_ads_type",
            "label"         => "Office Profiles Top Ads Type",
            "type"          => "selectBox",
            "list"          => [
                "slider"    => "Slider",
                "bar"       => "Bar",
            ],
            "defaultValue"  => "bar",
            "mandatory"     => FALSE,
            "inList"        => FALSE,
            "preValidation" => "trim",
            "validation"    => ""
        ],
        [
            "name"          => "facebook_url",
            "label"         => "Facebook URL",
            "type"          => "textBox",
            "maxLength"     => 255,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|url|max:255",
        ],
        [
            "name"          => "instagram_url",
            "label"         => "Instagram URL",
            "type"          => "textBox",
            "maxLength"     => 255,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|url|max:255",
        ],
    ],
    "actions"        => [
        "edit"
    ]
];
