2021-01-12 16:48:32 -08:00
|
|
|
<!-- Datepicker -->
|
|
|
|
<div class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
|
|
|
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
2022-10-05 16:59:06 -07:00
|
|
|
<div class="input-group col-md-4">
|
|
|
|
<div class="input-group date" data-provide="datepicker" data-date-clear-btn="true" data-date-format="yyyy-mm-dd" data-autoclose="true">
|
2023-04-12 08:26:36 -07:00
|
|
|
<input type="text" class="form-control" placeholder="{{ trans('general.select_date') }}" name="{{ $fieldname }}" id="{{ $fieldname }}" value="{{ old($fieldname, ($item->{$fieldname}) ? date('Y-m-d', strtotime($item->{$fieldname})) : '') }}" readonly style="background-color:inherit" maxlength="10">
|
2024-08-18 10:24:26 -07:00
|
|
|
<span class="input-group-addon"><x-icon type="calendar" /></span>
|
2021-01-12 16:48:32 -08:00
|
|
|
</div>
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first($fieldname, '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
|
2021-01-12 16:48:32 -08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|