{{-- format-ignore-start --}} @props([ // allow date range selection 'range' => false, // name of the datepicker. This name is used when posting the form with the datepicker 'name' => defaultBladewindName(), // default date to fill in to the datepicker. 'selectedValue' => '', // date format.. default is yyyy-mm-dd // accepted formats are yyyy-mm-dd, mm-dd-yyyy, dd-mm-yyyy, D d M, Y 'format' => config('bladewind.datepicker.format', 'yyyy-mm-dd'), // text to display in the label that identifies the input field 'label' => config('bladewind.datepicker.label', 'Select a date'), // placeholder text to display if datepicker is empty 'placeholder' => config('bladewind.datepicker.placeholder', 'Select a date'), // is the value of the date field required? used for form validation 'required' => false, 'tabindex' => -1, // first day of the week 'weekStarts' => 'sunday', // any extra classes for the datepicker 'class' => '', // size of the input field 'size' => 'medium', // calendar dates start from 'minDate' => '', // calendar dates end at 'maxDate' => '', 'nonce' => config('bladewind.script.nonce', null), ]) @php $name = parseBladewindName($name); $required = parseBladewindVariable($required); $weekStarts = in_array($weekStarts, ['sunday','monday']) ? $weekStarts : 'sunday'; @endphp {{-- format-ignore-end --}}