{{-- sur le tag --}} {{-- :options="['defaultDate' => 'today']" --}} @props(['name', 'error' => null, 'options' => [], 'required' => false]) @php $label = $attributes['label'] ?? false; $placeholder = $attributes['placeholder'] ?? ''; $error = json_decode($error, true) ?? []; $options = array_merge( [ 'enableTime' => false, 'dateFormat' => 'Y-m-d', 'altInput' => true, 'altFormat' => 'd/m/y', // 'defaultDate' => 'today', 'locale.firstDayOfWeek' => 1, // 'disableMobile' => true, ], $options, ); @endphp