{{--
 *
 * @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 border-b border-gray-200">
                  {!! __('globals::core-users.info.tenant-access') !!}
                </div>

                <div class="py-6 px-4 space-y-6 sm:p-6">

@foreach ($tenantAccess as $tenant_id => $item)



                  <div class="grid grid-cols-6 gap-6">
                    <x-globals::form-elements.placeholder :attributes="['title' => 'ID #'.$tenant_id]" :label="$item['identifier']" />
                    <x-globals::form-elements.toggle :attributes="['title' => 'ID #'.$item['id']]" group="tenantAccess.{!! $tenant_id !!}" label="{{ __('globals::global.label.active') }}" modifier="live" name="active" :readOnly="$readOnly" />

    @if ($item['access_level'] !== false || 1)

                    <x-globals::form-elements.select group="tenantAccess.{!! $tenant_id !!}" :hideNullOption="false" label="{{ __('globals::core-users.label.tenant-access.access-level') }}" :mandatory="true" modifier="live" name="accessLevel" :readOnly="$readOnly" :values="$item['accessLevels']" />

    @endif

                  </div>

@endforeach


                </div>
