1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00
my-idlers/resources/views/components/text-input.blade.php
cp6 5fbadf8063 Updated text input component
Updated text input component to include placeholder and error message output if exists
2022-10-31 14:41:26 +11:00

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>