{{-- Editable Field Component - LucentUI Theme Migrated from AdminLTE to Tailwind A field with display value and edit button that opens a modal Usage: Additional information about the field... --}} @props([ 'label', 'value', 'placeholder' => null, 'editing' => false, 'editClick' => null, 'cancelClick' => null, 'saveClick' => null, 'applyClick' => null, 'applyLabel' => 'Save & Apply', 'error' => null, ]) @php $entangleProperty = $attributes->wire('model')->value() ? ('isEditing' . ucfirst($label)) : 'editing'; @endphp
{{ $value ?? 'Not set' }} @if($editClick) @endif
@if($editing !== false)

Edit {{ $label }}

whereStartsWith('wire:model') }} class="w-full h-11 px-4 text-sm text-primary dark:text-gray-100 bg-background dark:bg-gray-900 border border-neutral dark:border-gray-600 rounded-lg shadow-sm focus:border-primary focus:outline-none focus:ring-2 focus:ring-primary/25 placeholder:text-secondary/50 dark:placeholder:text-gray-500 transition-all duration-150" placeholder="{{ $placeholder ?? 'Enter ' . strtolower($label) }}" />
@if($error)
{{ $error }}
@endif @if(isset($hint))
{{ $hint }}
@endif
@if($cancelClick) @endif @if($saveClick) @endif @if($applyClick) @endif
@endif