@props([ 'name', 'label', 'value' => null, 'icon' => null, 'rows' => 3, 'max' => null, 'helper' => null, 'placeholder' => '', ]) @php $current = old($name, $value); $invalid = $errors->has($name); $id = 'field-'.$name; @endphp {{-- The counter counts against the limit the SERVER enforces (passed in from CustomerRequest::MAX), so it can never promise room that validation will then refuse. --}}
@if ($max) / {{ number_format($max) }} @endif
@if ($icon) @endif
@if ($invalid) @elseif ($helper)

{{ $helper }}

@endif