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