leenooks/resources/themes/adminlte/views/widget/form_text.blade.php

15 lines
492 B
PHP
Raw Normal View History

2022-08-01 10:29:57 +00:00
<div class="form-group">
<label for="{{ $id }}">{{ $label }}</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="fa-fw {{ $icon }}"></i></span>
</div>
<input type="text" class="form-control @error($id) is-invalid @enderror" id="{{ $id }}" name="{{ $name ?: $id}}" value="{{ old($old ?? $name,$value) }}">
<span class="invalid-feedback" role="alert">
@error($id)
{{ $message }}
@enderror
</span>
</div>
</div>