<?php

    return [
        "type"           => "faq_category",
        "model"          => App\Models\FaqCategory::class,
        "label"          => "Faq Categories",
        "label_singular" => "Faq Category",
        "group"          => "support",
        "order"          => TRUE,
        "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"          => "icon",
                "label"         => "Image Icon",
                "info"          => "SVG",
                "type"          => "mediaPicker",
                "multiple"      => false,
                "multiLanguage" => false,
                "mediaType"     => "document",
                "allowed"       => "svg",
                "placement"     => "sidebar",
            ],
            [
                "name"        => "faqs",
                "label"       => "FAQs",
                "type"        => "singlePicker",
                "objectType"  => "faq",
                "order" => true
            ],
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
