<?php
return array(
    "type" => "project_cobenefit",
    "model" => "App\Models\ProjectCobenefit",
    "label" => "Project Co-benefits",
    "label_singular" => "Project Co-benefit",
    "group" => "none",
    "shareable" => "none",
    "template" => false,
    "order" => true,
    "parent" => array(
        "field" => "project_id",
        "contentType" => "project"
    ),
    "search" => [
        1 => [
            "primary" => [
            ],
            "secondary" => [
                "title", "mesure"
            ],
            "parentRelationships" => [
                "project",
            ],
            "relations" => [
                "cobenefit"
            ]
        ]
    ],
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:255",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "mesure",
            "label" => "Measure",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "cobenefit_id",
            "label" => "co-benefit",
            "type" => "selectBox",
            "contentType" => "cobenefit",
            "preValidation" => "trim",
            "validation" => "required|integer|min:1",
            "inList" => true,
            "search" => true,
            "sort" => true,
            "placement" => "sidebar"
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete"
    )
);
