@php $attributes['class'] = Arr::get($attributes, 'class', '') . str_replace(Arr::get($attributes, 'class'), '', ' form-control'); $attributes['data-date-format'] = $attributes['data-date-format'] ?? config('core.base.general.date_format.date'); $attributes['placeholder'] = $attributes['data-date-format']; $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'); } @endphp
{!! Form::text($name, $value, $attributes) !!}