ldc-boutique-cnc/resources/views/partials/inputs/timestamp-datetime.blade.php
2023-02-07 10:50:48 +01:00

17 lines
488 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('back::modules.input-error', [
'inputName' => $name,
'helperId' => "{$id}Help",
'helper' => $helper
])