<?php

    return [
        "type"           => "quote",
        "model"          => App\Models\Quote::class,
        "label"          => "Media Quotes",
        "label_singular" => "Media Quote",
        "template"       => FALSE,
        "hierarchic"     => FALSE,
        "group"          => "community",
        "order"          => TRUE,
        "showSlug"       => TRUE,
        "showUri"        => FALSE,
        
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "title",
                "type"          => "textBox",
                "maxLength"     => 40,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:40",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"         => "logo",
                "label"        => "Logo",
                "type"         => "mediaPicker",
                "multiple"     => FALSE,
                "mediaType"    => "image",
                "isFullscreen" => true,
            ],
            [
                "name"          => "block_title",
                "label"         => "Frontend Title",
                "type"          => "link",
                "maxLabel"     => 60,
                "multiLanguage" => true,
                "objectTypes"   => [
                    "page", "product"
                ],
                "required"      => TRUE,
            ],
            [
                "name"          => "quote_text",
                "label"         => "text",
                "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"
        ]
    ];
