mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
5fbadf8063
Updated text input component to include placeholder and error message output if exists
7 lines
464 B
PHP
7 lines
464 B
PHP
<div class="input-group">
|
|
<div class="input-group-prepend"><span class="input-group-text">{{$title}}</span></div>
|
|
<input type="text" name="{{$name}}" class="form-control" minlength="{{$min ?? 0}}" maxlength="{{$max ?? 99999}}"
|
|
value="{{$value ?? ''}}" @if(isset($placeholder)) placeholder="{{$placeholder}}" @endif {{(isset($required))? 'required': ''}}>
|
|
@error((string)$name)<span class="text-red-500">{{ $message }}</span>@enderror
|
|
</div>
|