<?php

return [
    "type"           => "teamMembers",
    "model"          => App\Models\TeamMember::class,
    "label"          => "Team Members",
    "label_singular" => "Team Member",
    "group"          => "content types",
    "order"          => TRUE,
    "search" => [
        "fields" => [
            "title",
            "first_name",
            "last_name",
            "email",
            "role",
            "nationality",
            "location",
            "area_responsibility",
        ],
        "parentRelationships" => [
            "block",
        ]
    ],
    "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"          => "first_name",
            "label"         => "First Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "last_name",
            "label"         => "Last Name",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "phone_number",
            "label"         => "Phone Number",
            "type"          => "textBox",
            "maxLength"     => 20,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:20",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "email",
            "label"         => "E-Mail",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => FALSE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "role",
            "label"         => "Role",
            "type"          => "textBox",
            "maxLength"     => 250,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:250",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "nationality",
            "label"         => "Nationality",
            "type"          => "textBox",
            "maxLength"     => 50,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:50",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "location",
            "label"         => "Location",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "area_responsibility",
            "label"         => "Area of Responsibility",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "linkedin",
            "label"         => "Linkedin",
            "type"          => "textBox",
            "maxLength"     => 250,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:250",
        ],
        [
            "name"          => "twitter",
            "label"         => "Twitter",
            "type"          => "textBox",
            "maxLength"     => 250,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:250",
        ],
        [
            "name"          => "company",
            "label"         => "Company",
            "type"          => "textBox",
            "maxLength"     => 250,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:250",
        ],
        [
            "name"      => "image",
            "label"     => "Cover Image",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "placement" => "sidebar"
        ],
    ],
    "actions"        => [
        "edit", "insert", "delete"
    ]
];
