<?php

    return [
        "type"           => "faq",
        "model"          => App\Models\Faq::class,
        "label"          => "Faqs",
        "label_singular" => "Faq",
        "group"          => "none",
        "order"          => TRUE,
        "parent" => array(
            "field" => "faq_category_id",
            "contentType" => "faq_Category"
        ),
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "Title",
                "type"          => "textBox",
                "maxLength"     => 300,
                "multiLanguage" => TRUE,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:300",
                "inList"        => TRUE,
                "search"        => TRUE,
                "sort"          => TRUE
            ],
            [
                "name"          => "content",
                "label"         => "Content",
                "type"          => "editor",
                "multiLanguage" => TRUE,
                "preValidation" => "xss_clean|trim",
                "validation"    => ""
            ]
        ],
        "actions"        => [
            "edit", "order", "insert", "delete"
        ]
    ];
