ldc-supportweb/resources/views/bo/partials/inputs/date.blade.php

16 lines
530 B
PHP
Raw Permalink Normal View History

2023-08-14 17:48:26 +00:00
<label for="{{ $id }}">
<b>{{ $label }}</b>
</label>
<input id="{{ $id }}"
name="{{ $name }}"
class="form-control"
type="date"
data-form-type="date"
aria-describedby="{{ "{$id}Help" }}"
value="{{ old($name, ((isset($model) and $model->{$name}) ? ($model->{$name}->format('Y-m-d') ?? ($defaultValue ? Carbon\Carbon::today() : '')) : ($defaultValue ? Carbon\Carbon::today() : ''))) }}">
@include('modules.input-error', [
'inputName' => $name,
2025-04-17 16:24:27 +02:00
'helperId' => $id."Help",
2023-08-14 17:48:26 +00:00
'helper' => $helper
])