@props([ 'name' => '', 'id' => null, 'value' => '', 'label' => '', 'placeholder' => '0', 'required' => false, 'disabled' => false, 'readonly' => false, 'error' => null, 'currency' => 'Rp', 'precision' => 0, 'allowNegative' => false, 'max' => null, 'min' => 0, 'hint' => null, 'class' => '' ]) @php $inputId = $id ?? $name; $hasError = $error || $errors->has($name); $formattedValue = old($name, $value); if (is_numeric($formattedValue)) { $formattedValue = number_format((float) $formattedValue, $precision, ',', '.'); } @endphp
@if($label) @endif
{{ $currency }}
@if($hasError)

{{ $error ?? $errors->first($name) }}

@endif @if($hint)

{{ $hint }}

@endif
@push('scripts') @endpush