<?php

use App\Models\SubPlanFeature;

return [
    "type"           => "sub_plan_feature",
    "model"          => SubPlanFeature::class,
    "label"          => "content_types.sub_plan_feature_plural",
    "label_singular" => "content_types.sub_plan_feature_singular",
    "hierarchic"     => FALSE,
    "group"          => "none",
    "parent" => array(
        "field"         => "sub_plan_id",
        "contentType"   => "sub_plan"
    ),
    "search"         => null,
    "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"          => "not_included",
            "label"         => "Not Included",
            "type"          => "checkBox",
        ],
    ],
    "actions"        => [
        "edit", "insert", "delete"
    ]
];
