{{ isset($label) ? html()->label($label)->class('font-semibold text-black dark:text-white') : '' }} {{ isset($required) ? html()->span('*')->class('text-danger') : '' }} {{ html()->date($name, isset($value) ? $value : null)->placeholder($placeholder ?? $label)->required(isset($required) ? true : false)->id(isset($id) ? $id : $name)->attribute('onclick', 'this.showPicker();')->attributes( array_filter([ 'readonly' => isset($readonly) ? 'readonly' : null, 'min' => $min ?? null, 'max' => $max ?? null, ]), )->class( isset($class) ? $class : 'w-full rounded border-[1.5px] bg-transparent py-2 px-4 font-medium outline-none mt-1 transition focus:border-primary active:border-primary disabled:cursor-default disabled:bg-whiter dark:border-form-strokedark dark:bg-form-input dark:focus:border-primary' . ($errors->has($name) ? ' border-red-500' : ' border-stroke'), ) }} @error($name)
{{ $message }}
@enderror