@if (($readonly ?? false) || ($disabled ?? false))
    @include('components.form.input')
@else
    @include('components.form.label')
    <div class="input-group date" data-target-input="nearest">
        @include('components.form.input', [
            'type' => 'text',
            'class' => $class ?? ' datepicker',
            'meta' => 'data-target="#' . ($id_name ?? str_slug($name, '-')) . '"',
            'placeholder' => $placeholder ?? App\Repositories\Core\DateTime::getLocaleFormatDate(),
            'label' => false,
        ])
        <div class="input-group-append" data-target="#{{ $id_name ?? str_slug($name, '-') }}" data-toggle="datetimepicker">
            <div class="input-group-text"><i class="fa fa-calendar"></i></div>
        </div>
    </div>
@endif

@include('load.form.datepicker')
