27 lines
1,023 B
PHP
27 lines
1,023 B
PHP
@if(!empty($label))
|
|
<label for="{{ $id }}" class="col-form-label">
|
|
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
|
|
</label>
|
|
@endif
|
|
@if(isset($appendText))
|
|
<div class="input-group">
|
|
@endif
|
|
<input id="{{ $id }}"
|
|
name="{{ $name }}"
|
|
type="number"
|
|
value="{{ Str::replace(',', '.', strval(old($name, $value ?? $model->{$name} ?? ''))) }}"
|
|
class="form-control"
|
|
aria-describedby="{{ $id }}Help"
|
|
@if(!empty($step)) step="{{ Str::replace(',', '.', strval($step)) }}"@else step="1" @endif
|
|
@if(!empty($max)) max="{{ $max }}" @else max="{{ !empty($unsigned) ? '65535' : '32767' }}" @endif
|
|
@if(!empty($min)) min="{{ $min }}" @else min="{{ !empty($unsigned) ? '0' : '-32768' }}" @endif
|
|
@if(!empty($required))required @endif>
|
|
@if(isset($appendText))
|
|
<label class="input-group-text">{{ $appendText }}</label>
|
|
</div>
|
|
@endif
|
|
@include('modules.input-error', [
|
|
'inputName' => $name,
|
|
'helperId' => '{{ $id }}Help',
|
|
'helper' => $helper
|
|
])
|