26 lines
737 B
PHP
26 lines
737 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} ?? $value ?? '') }}"
|
|
class="form-control
|
|
@if(!empty($hasWordCounter ?? false))
|
|
need-word-counter
|
|
@endif"
|
|
id="{{ $id }}"
|
|
aria-describedby="{{ $id }}Help"
|
|
placeholder="{{ $placeholder ?? __('A beautiful title') }}"
|
|
@if(!empty($required))
|
|
required
|
|
@endif>
|
|
@include('modules.input-error', [
|
|
'inputName' => $name,
|
|
'helperId' => $id.'Help',
|
|
'helper' => $helper
|
|
])
|