{{--
 *
 * @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 bplan-solutions GmbH & Co. KG <http://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-entity-types.label.main.tenant_id') }}" :disabled="true" :hideNullOption="true" name="id" :noWire="true" :readOnly="$readOnly" :selected="key($tenant)" :values="$tenant" />
                  </div>

                  <div class="grid grid-cols-6 gap-6">

@if ($main['abstract'] === true)

                    <x-globals::form-elements.input label="{{ __('globals::core-entity-types.label.main.main_type') }}" :mandatory="true" modifier="blur" name="main_type" :readOnly="$readOnly" />

@else

                    <x-globals::form-elements.input label="{{ __('globals::core-entity-types.label.main.main_type') }}" :mandatory="true" modifier="blur" name="main_type" :readOnly="true" width="1" />
                    <x-globals::form-elements.input label="{{ __('globals::core-entity-types.label.main.sub_type') }}" :mandatory="true" modifier="blur" name="sub_type" :readOnly="$readOnly" width="1" />

@endif
                    <x-globals::form-elements.toggle label="{{ __('globals::global.label.active') }}" name="active" :readOnly="$readOnly" />
                  </div>

                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.input label="{{ __('globals::core-entity-types.label.main.resource_name') }}" :mandatory="true" name="resource_name" :readOnly="$readOnly" />
                    {{-- <x-globals::form-elements.select label="{{ __('globals::core-entity-types.label.main.resource_context') }}" :mandatory="true" name="resource_context" :readOnly="$readOnly" :values="$resourceContexts" /> --}}
                  </div>

                  {{-- <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.select label="{{ __('globals::core-entity-types.label.main.storage') }}" :mandatory="true" name="storage" :readOnly="$readOnly" :selected="$main['storage']" :values="$dataStorages" />
                    <x-globals::form-elements.select label="{{ __('globals::core-entity-types.label.main.storage_type') }}" :mandatory="true" name="storageType" :readOnly="$readOnly" :selected="$main['storageType']" :values="$dataStorageTypes" />
                  </div> --}}

                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.select label="{{ __('globals::core-entity-types.label.main.delete_mode') }}" :mandatory="true" name="delete_mode" :readOnly="$readOnly" :selected="$main['delete_mode']" :values="$deleteModeOptions" />
                  </div>
                </div>
