{{-- SettingsForm::groups() as cards (one column when $compact). Input names mirror the key: settings[branding][app_name] saves "branding.app_name". --}}
@foreach ($groups as $group) @if ($group['configured'] !== null) @endif @if ($group['note'])

{{ $group['note'] }}

@endif
! ($compact ?? false)])> @foreach ($group['fields'] as $key => $field) @php($path = str_replace('.', '][', $key)) @php($name = "settings[{$path}]") @php($id = 'setting_'.str_replace('.', '_', $key)) @php($input = $field['input'] ?? null) @if ($field['type'] === 'boolean')
! ($compact ?? false)])>
@elseif ($field['secret'] ?? false) @elseif ($field['type'] === 'file') @elseif ($input === 'select') @elseif ($input === 'searchable-select') @php($from = $field['options_from'] ?? null) {{-- a field in this group whose value picks the option set --}} @elseif ($input === 'color')
$errors->has("settings.{$key}")])>
@if ($field['hint'] ?? null)

{{ $field['hint'] }}

@endif @error("settings.{$key}")

{{ $message }}

@enderror
@else @endif @endforeach
@endforeach