ldc-qrcollector-back/resources/views/bo/partials/inputs/timestamp-datetime.blade.php
2023-03-28 14:37:49 +00:00

10 lines
No EOL
441 B
PHP

<label for="{{ $id }}"><b>{{ $label }}</b></label>
<input id="{{ $id }}" name="{{ $name }}" class="form-control" 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' => $helper
])