{{--
 *
 * @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/>
 * /Δ\
--}}


@if ($supportedSystemConfigTemplate !== null)
    @foreach ($supportedSystemConfigTemplate as $sectionKey => $section)
        @php
            if (empty($section)) {
                continue;
            }
        @endphp
                <div class="py-4 px-4 space-y-6 sm:px-6 pb-0">
                  <div class="grid grid-cols-6 gap-6">
                    <h2 class="col-span-6 text-base font-semibold leading-7 text-gray-900">{{ $configSections[$sectionKey] }}</h2>
                  </div>
                </div>

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

        @foreach ($section as $key => $Settings)

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

                    <x-globals::form-elements.input :label="(isset($Settings->label) ? $Settings->label : $key)" group="configSettings" :mandatory="$Settings->mandatory" :name="$Settings->name" :readOnly="$readOnly" />

                  </div>

        @endforeach

                </div>

    @endforeach
@endif
