ldc-supportweb/resources/views/crud/formfields/float.blade.php

19 lines
789 B
PHP
Raw Normal View History

<td>
<label for="{{ $fieldName }}" class="form-label">{{ $prop['label'] }}</label>
</td>
<td>
<input
id="{{ $fieldName }}"
class="form-control"
name="{{ $fieldName }}"
type="number"
placeholder="{{ $prop['rules']['min'] }}"
value="{{ old($fieldName) ?? $model->{$fieldName} ?? $prop['rules']['min'] }}"
@if(isset($prop['rules']['max']))max="{{ $prop['rules']['max'] }}"@endif
@if(isset($prop['rules']['min']))min="{{ $prop['rules']['min'] }}"@endif
@if(isset($prop['rules']['step']))step="{{ $prop['rules']['step'] }}"@endif
@if($prop['disabled'])disabled @endif
@if($readonly)readonly @endif
@if($prop['required'] or (!$prop['required'] and !$prop['nullable']))required @endif>
</td>