7 lines
402 B
PHP
7 lines
402 B
PHP
@props(['name', 'value' => null, 'showError' => true])
|
|
|
|
<input type="text" inputmode="numeric" data-koperasi-rupiah name="{{ $name }}"
|
|
value="{{ \App\Services\Koperasi\PengurusKoperasiService::formatRupiah($value) }}"
|
|
{{ $attributes->class(['form-control', 'is-invalid' => $errors->has($name)]) }}>
|
|
@if($showError)@error($name)<div class="invalid-feedback">{{ $message }}</div>@enderror @endif
|