{{--
 *
 * @version     2.0.$Revision:$
 * @version     SVN: $Id:$
 * @package     bplan-base/globals
 * @subpackage  Views
 * @author      Wassilios Meletiadis <wassilios.meletiadis@bplan-solutions.de>
 * @copyright   Copyright (C) 2025 Wassilios Meletiadis <https://www.bplan-solutions.de/>
 * /Δ\
--}}

                <div class="py-6 px-4 space-y-6 sm:p-6">
                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.select label="{{ __('globals::core-users.label.tenant') }}" :disabled="true" :hideNullOption="true" name="id" :noWire="true" :readOnly="$readOnly" :selected="key($tenant)" :values="$tenant" />
                  </div>

                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.input label="{{ __('globals::core-users.label.main.name') }}" :mandatory="true" name="name" :readOnly="$readOnly" />
                    <x-globals::form-elements.toggle label="{{ __('globals::global.label.active') }}" name="active" :readOnly="$readOnly" />

@if ($editorRestricted === false)

                    <x-globals::form-elements.toggle label="{{ __('globals::core-users.label.main.restricted') }}" modifier="live" name="restricted" :readOnly="$readOnly" />

@endif

                  </div>

                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.input-email label="{{ __('globals::core-users.label.main.email') }}" :mandatory="true" name="email" :readOnly="$readOnly" />

@if ($this->accessLevels !== null)

                    <x-globals::form-elements.select label="{{ __('globals::core-users.label.main.access_level') }}" :mandatory="true" name="access_level" :readOnly="$readOnly" :values="$accessLevels" />

@endif

                  </div>

@if (empty($MainObject->id))

                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.input-password label="{{ __('globals::core-users.label.main.password') }}" :mandatory="true" name="password" :readOnly="$readOnly" />
                    <x-globals::form-elements.input-password label="{{ __('globals::core-users.label.main.password_confirmation') }}" :mandatory="true" name="password_confirmation" :readOnly="$readOnly" />
                  </div>

@endif

                </div>
