ldc-supportweb/resources/views/bo/partials/inputs/publish-dates.blade.php
2023-08-14 09:23:39 +00:00

16 lines
718 B
PHP

<label for="{{ $id }}">
<b>{{ $label }}</b>
</label>
<input id="{{ $id }}"
name="{{ $name }}"
class="form-control publishTime"
type="datetime-local"
data-form-type="date"
aria-describedby="{{ $id }}Help"
value="{{ old($name, ((isset($model) and $model->{$name}) ? $model->{$name}->format('Y-m-d\TH:i') : '')) }}">
@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.')
])