ldc-crm/resources/views/partials/inputs/int-number.blade.php
2023-06-12 15:31:55 +02:00

30 lines
740 B
PHP

@if(!empty($label))
<label for="{{ $id }}" class="col-form-label">
<b>{{ $label }} {{ $required ? '*' : '' }}</b>
</label>
@endif
<input
id="{{ $id }}"
name="{{ $name }}"
type="number"
value="{{ old($name, $model->{$name} ?? 0) }}"
class="form-control"
aria-describedby="{{ $id }}Help"
step="1"
@if(!empty($max))
max="{{ $max }}"
@else
max="{{ !empty($unsigned) ? '4294967295' : '2147483647' }}"
@endif
@if(isset($min))
min="{{ $min }}"
@else
min="{{ !empty($unsigned) ? '0' : '-2147483648' }}"
@endif
@if(!empty($required))required @endif
>
@include('modules.input-error', [
'inputName' => $name,
'helperId' => '{{ $id }}Help',
'helper' => $helper
])