HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers85/equichecker.com/app/KommaApp/Users/Kms/UserSection.php
<?php

namespace KommaApp\Users\Kms;

/**
 *
 *
 * @author      Komma <info@komma.pro>
 * @copyright   (c) 2012-2016, Komma Mediadesign
 */


use KommaApp\Kms\Core\Kms;
use KommaApp\Kms\Core\Sections\KmsSection;
use KommaApp\Kms\Core\Sections\KmsSectionTabs;

class UserSection extends KmsSection
{
    protected $title = "Users";
    protected $subTitle = "The administrators for KMS";
    protected $slug = "users";

    public $showDelete  ='true';
    public $showCreate='true';

    protected $modelAttributesData = [
        'information_label' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTitle',
            'options' => [
                'title' => 'lang_get:kms/global.information',
            ],
        ],
        'is_admin' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsOnOff',
            'options' => [
                'label' => 'lang_get:kms/users.super_admin',
                'onlyForSuperAdmin' => true
            ]
        ],
        'username' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/global.username',
                'placeholder' => 'Enter a username',
                'lowercase' => true,
                'validation' => [
                    'rules' => 'required|unique:users,username,[[modelId]]',
                    'messages' => [
                        'required' => 'You need to enter a username',
                        'unique' => 'This username is already registered'
                    ]
                ]
            ]
        ],
        'email' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/global.email',
                'placeholder' => 'Enter a email',
                'lowercase' => true,
                'validation' => [
                    'rules' => 'required|email|unique:users,email,[[modelId]]',
                    'messages' => [
                        'required' => 'You need to enter an email address',
                        'email' => 'You need to enter a valid email address',
                        'unique' => 'This email address is already registered'
                    ]
                ]
            ]
        ],
        'password' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsPassword',
            'options' => [
                'label' => 'lang_get:kms/global.password',
                'placeholder' => 'Enter a password',
                'validation' => [
                    'rules' => 'required|min:5',
                    'messages' => [
                        'required' => 'You need to enter an password',
                    ]
                ]
            ]
        ],
        'spacer_1' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsSeparator'
        ],
        'first_name' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/global.first_name',
                'placeholder' => 'Enter a first name'
            ]
        ],
        'last_name' => [
            'type' => 'KommaApp\Kms\Core\Attributes\KmsTextField',
            'options' => [
                'label' => 'lang_get:kms/global.last_name',
                'placeholder' => 'Enter a last name'
            ]
        ]
    ];

    function __construct(Kms $kms, UserRepository $repository, KmsSectionTabs $tabs)
    {
        parent::__construct($kms, $repository, $tabs);
    }


}