15 lines
531 B
PHP
15 lines
531 B
PHP
<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,
|
|
'helperId' => "{$id}Help",
|
|
'helper' => $helper
|
|
])
|