<?php

return [
    "type"           => "advertisement",
    "model"          => App\Models\Advertisement::class,
    "label"          => "content_types.advertisement_plural",
    "label_singular" => "content_types.advertisement_singular",
    "group"          => "general",
    "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"          => "link",
            "label"         => "Link",
            "type"          => "textBox",
            "maxLength"     => 255,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "url|required|max:255",
        ],
        [
            "name"          => "customer_name",
            "label"         => "Customer Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
        ],
        [
            "name"          => "campaign_name",
            "label"         => "Campaign Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "expire_date",
            "label"         => "Expire Date",
            "type"          => "datePicker",
            "inputType"     => "date",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "tag",
            "label"         => "Tag",
            "type"          => "textBox",
            "maxLength"     => 100,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "nullable|max:100",
        ],
        [
            "name"      => "largeMobileBanner",
            "label"     => "Large Mobile Banner",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "320x100",
        ],
        [
            "name"      => "mediumRectangle",
            "label"     => "Medium Rectangle",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "300x250",
        ],
        [
            "name"      => "largeLeaderboard",
            "label"     => "Large Leaderboard",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "970x90",
        ],
        [
            "name"      => "superBanner",
            "label"     => "Super Banner",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "728x90",
        ],
        [
            "name"      => "largeBanner",
            "label"     => "Large Banner",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "1620x150",
        ],
        [
            "name"      => "sliderBanner",
            "label"     => "Slider Banner",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "info"      => "395x265",
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete"
    ]
];
