@php $attributes['class'] = Arr::get($attributes, 'class', '') . str_replace(Arr::get($attributes, 'class'), '', ' form-control'); $attributes['placeholder'] = BaseHelper::getDateFormat(); $attributes['data-input'] = ''; $attributes['readonly'] = $attributes['readonly'] ?? 'readonly'; if (App::getLocale() != 'en') { Assets::addScriptsDirectly('https://npmcdn.com/flatpickr@4.6.13/dist/l10n/index.js'); } if (! empty($attributes['data-options'])) { $attributes['data-options'] = json_encode($attributes['data-options']); } @endphp