<?php
  return [
    "type"           => "donation",
    "model"          => "Donation",
    "label"          => "Donations",
    "label_singular" => "Donation",
    "group"          => "none",
    "order"          => TRUE,
    "template"       => FALSE,
    //  "showSlug" => true,
    "showUri"        => TRUE,
    "baseUri"        => [
      'de' => Lang::get('routes.uri_submissions', [], 'de'),
      'en' => Lang::get('routes.uri_submissions', [], 'en'),
      'fr' => Lang::get('routes.uri_submissions', [], 'fr')
    ],
    "parent"         => [
      "field"       => "user_id",
      "contentType" => "user"
    ],
    "fields"         => [
      [
        "name"          => "title",
        "label"         => "title",
        "type"          => "textBox",
        "maxLength"     => 50,
        "multiLanguage" => TRUE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "required|max:255",
        "inList"        => TRUE,
        "search"        => TRUE,
        "sort"          => TRUE
      ],
      [
        "name"          => "donation_amount",
        "label"         => "Donation Amount",
        "type"          => "textBox",
        "maxLength"     => 255,
        "multiLanguage" => FALSE,
        "preValidation" => "strip_tags|xss_clean|trim",
        "validation"    => "required|max:255",
        "inList"        => TRUE,
        "search"        => TRUE,
        "sort"          => TRUE
      ]
    ],
    "actions"        => [
      "insert", "edit", "delete", "order"
    ]
  ];
