19 lines
663 B
PHP
19 lines
663 B
PHP
@if(!empty($label))
|
|
<label for="{{ $id }}" class="col-form-label">
|
|
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
|
|
</label>
|
|
@endif
|
|
@if(!empty($hasWordCounter ?? false))
|
|
<div class="word-counter" data-json='@json(['id' => $id])'></div>
|
|
@endif
|
|
<input name="{{ $name }}" type="text" value="{{ old($name, $model->{$name} ?? '') }}" class="form-control need-word-counter"
|
|
id="{{ $id }}"
|
|
aria-describedby="{{ $id }}Help"
|
|
placeholder="{{ $placeholder ?? __('Un nom beau et explicite') }}"
|
|
@if(!empty($required))required @endif
|
|
>
|
|
@include('modules.input-error', [
|
|
'inputName' => $name,
|
|
'helperId' => '{{ $id }}Help',
|
|
'helper' => $helper
|
|
])
|