@props([ 'options' => [], 'minDate' => null, 'maxDate' => null, 'minModel' => null, 'maxModel' => null, 'placeholder' => null, 'label' => null, ]) @php $isTimeOnly = ($options['noCalendar'] ?? false) === true; $placeholderText = $placeholder ?? $label ?? __($isTimeOnly ? 'Select time' : 'Select date'); $ariaLabel = $label ?? $placeholderText; $minValueExpression = $minModel ? '$wire.entangle(\''.str_replace('\\', '\\\\', str_replace('\'', '\\\'', $minModel)).'\').live' : json_encode($minDate); $maxValueExpression = $maxModel ? '$wire.entangle(\''.str_replace('\\', '\\\\', str_replace('\'', '\\\'', $maxModel)).'\').live' : json_encode($maxDate); @endphp