@php $props = []; $id = $id ?? Str::random(5); array_push($props, 'id="' . $id . '"'); array_push($props, 'name="' . ($name ?? $id) . '"'); array_push($props, 'value="' . (old($name ?? $id) ?? ($value ?? ($d[$name ?? $id] ?? ''))) . '"'); array_push($props, isset($placeholder) ? 'placeholder="' . $placeholder . '"' : ''); array_push($props, isset($accept) ? 'accept="' . $accept . '"' : ''); array_push($props, isset($min) ? 'min="' . $min . '"' : ''); array_push($props, isset($max) ? 'max="' . $max . '"' : ''); array_push($props, isset($disabled) ? 'disabled' : ''); array_push($props, isset($readonly) ? 'readonly' : ''); array_push($props, $required ?? false ? 'required' : ''); array_push($props, isset($type) ? 'type="' . $type . '"' : 'type="text"'); @endphp
@error($name ?? $id)
{{ $message }}
@enderror
@if (!defined('COLORPICKER_IMPORT')) @php define('COLORPICKER_IMPORT', true); @endphp @push('css') @endpush @push('js') @endpush @push('scripts') @endpush @endif