<?php
  return [
    "type"           => "user",
    "model"          => "User",
    "label"          => "Users & Submissions",
    "label_singular" => "User & Submission",
    "group"          => "I am here",
    "order"          => TRUE,
    "template"       => FALSE,
    //  "showSlug" => true,
    "showUri"        => FALSE,
    "baseUri"        => [
      'de' => Lang::get('routes.uri_users', [], 'de'),
      'en' => Lang::get('routes.uri_users', [], 'en'),
      'fr' => Lang::get('routes.uri_users', [], 'fr')
    ],
    "fields"         => [
      [
        "name"          => "title",
        "label"         => "title",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "required|max:255",
        "inList"        => FALSE,
        "search"        => FALSE,
        "sort"          => TRUE
      ],
      [
        "name"          => "email",
        "label"         => "Email",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => FALSE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "required|max:255",
        "inList"        => TRUE,
        "search"        => TRUE,
        "sort"          => TRUE
      ],
      [
        "name"       => "user_status",
        "label"      => "Submission Status",
        "type"       => "selectBox",
        "inList"     => TRUE,
        "list"       => [
          "approved"     => "Approved",
          "not_approved" => "Not Approved",
          "none"         => "Waiting Approval"
        ],
        "validation" => "",
        "placement"  => "sidebar",
        "inList"     => TRUE,
        "search"     => TRUE,
        "sort"       => TRUE
      ],
      [
        "name"        => "submissions",
        "label"       => "Submission",
        "type"        => "singlePicker",
        "longList"    => TRUE,
        "allowInsert" => TRUE,
        "objectType"  => "submission",
        "order"       => TRUE,
        "inList"      => TRUE,
      ],
      [
        "name"        => "donations",
        "label"       => "Donation",
        "type"        => "singlePicker",
        "longList"    => TRUE,
        "allowInsert" => TRUE,
        "objectType"  => "donation",
        "order"       => TRUE
      ],
      [
        "name"          => "created_at",
        "label"         => "Created",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => FALSE,
        "inList"        => TRUE,
        "search"        => TRUE,
        "sort"          => TRUE,
        "disabled"      => TRUE
      ],
    ],
    "actions"        => [
      "insert", "edit", "delete", "order", "redirect"
    ]
  ];
