14 lines
612 B
PHP
14 lines
612 B
PHP
<label for="{{ $id }}">
|
|
<b>{{ $label }}</b>
|
|
</label>
|
|
<input class="form-control publishTime" id="{{ $id }}" name="{{ $name }}" data-form-type="date" type="datetime-local"
|
|
value="{{ old($name, (isset($model) and $model->{$name}) ? $model->{$name}->format('Y-m-d\TH:i') : '') }}"
|
|
aria-describedby="{{ $id }}Help">
|
|
@include('modules.input-error', [
|
|
'inputName' => $name,
|
|
'helperId' => $id . 'Help',
|
|
'helper' =>
|
|
(isset($model) and $model->{$name})
|
|
? __('Leave empty for immediate display of the slider.')
|
|
: __('Empty for immediate display of the slider.'),
|
|
])
|