fixes
This commit is contained in:
@@ -1,21 +1,30 @@
|
||||
@include('components.form.label')
|
||||
|
||||
@if (($disabled ?? false) || ($readonly ?? false))
|
||||
@include('components.form.input', ['type' => 'hidden', 'label' => false, 'disabled' => false, 'readonly' => false])
|
||||
@include('components.form.input', [
|
||||
'type' => 'hidden',
|
||||
'label' => false,
|
||||
'disabled' => false,
|
||||
'readonly' => false,
|
||||
])
|
||||
@endif
|
||||
|
||||
<input type="{{ $type ?? 'text'}}" name="{{ $name }}" id="{{ $id_name ?? str_slug($name,'-') }}" class="form-control {{ $class ?? ''}}" value="{{ $value ?? null}}"
|
||||
@if ($required ?? false) required @endif
|
||||
@if ($disabled ?? false) disabled @endif
|
||||
@if ($readonly ?? false) readonly @endif
|
||||
@if ($autofocus ?? false) autofocus @endif
|
||||
@if ($size ?? false) size="{{ $size }}" @endif
|
||||
@if ($autocomplete ?? false) autocomplete="{{ $autocomplete }}" @endif
|
||||
@if ($minlength ?? false) minlength={{ $minlength }} @endif
|
||||
@if ($maxlength ?? false) maxlength={{ $maxlength }} @endif
|
||||
@if ($formid ?? false) form="{{ $formid }}" @endif
|
||||
@if ($mask ?? false) data-inputmask="'mask': '{{ $mask }}'" @endif
|
||||
@if ($pattern ?? false) pattern="{{ $pattern }}" @endif
|
||||
@if ($placeholder ?? false) placeholder="{{ $placeholder }}" @endif
|
||||
@if ($step ?? false) step="{{ $step }}" @endif
|
||||
{!! $meta ?? '' !!} >
|
||||
<input type="{{ $type ?? 'text' }}" name="{{ $name }}" id="{{ $id_name ?? str_slug($name, '-') }}"
|
||||
class="form-control {{ $class ?? '' }}" value="{{ $value ?? (old($name) ?? '') }}"
|
||||
@if ($required ?? false) required @endif @if ($disabled ?? false) disabled @endif
|
||||
@if ($readonly ?? false) readonly @endif @if ($autofocus ?? false) autofocus @endif
|
||||
@if ($size ?? false) size="{{ $size }}" @endif
|
||||
@if ($autocomplete ?? false) autocomplete="{{ $autocomplete }}" @endif
|
||||
@if ($minlength ?? false) minlength={{ $minlength }} @endif
|
||||
@if ($maxlength ?? false) maxlength={{ $maxlength }} @endif
|
||||
@if ($formid ?? false) form="{{ $formid }}" @endif
|
||||
@if ($mask ?? false) data-inputmask="'mask': '{{ $mask }}'" @endif
|
||||
@if ($pattern ?? false) pattern="{{ $pattern }}" @endif
|
||||
@if ($placeholder ?? false) placeholder="{{ $placeholder }}" @endif
|
||||
@if ($step ?? false) step="{{ $step }}" @endif {!! $meta ?? '' !!}>
|
||||
|
||||
@error($name)
|
||||
<span class="invalid-feedback" role="alert">
|
||||
<strong>{{ $message }}</strong>
|
||||
</span>
|
||||
@enderror
|
||||
|
||||
Reference in New Issue
Block a user