{{-- 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
@if (!empty($error[0]))
@endif @if ($label) @endif merge(['class' => 'w-full appearance-none border-0 bg-transparent text-black py-1 px-0 focus:outline-none focus:border-transparent']) }} /> @if (!empty($error[0]))
{{ $error[0] }}
@endif