ldc-com-app-bo/resources/views/bo/partials/inputs/timestamp-datetime.blade.php

14 lines
454 B
PHP
Raw Permalink Normal View History

2023-03-14 14:57:03 +01:00
<label for="{{ $id }}"><b>{{ $label }}</b></label>
2023-03-27 12:17:31 +02:00
<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') ?? '') : '')) }}">
2023-03-14 14:57:03 +01:00
@include('modules.input-error', [
2023-03-27 12:17:31 +02:00
'inputName' => $name,
'helperId' => "{$id}Help",
'helper' => $helper
])