@props(['label', 'hint' => null, 'required' => false]) @php $model = $attributes->whereStartsWith('wire:model')->first() ?? $attributes->get('name'); $id = $attributes->get('id') ?? 'f-'.\Illuminate\Support\Str::slug(str_replace('.', '-', (string) $model)); $hasError = $model && $errors->has($model); @endphp {{-- A whole-number coin amount: the coin artwork at the start, "coins" at the end, so the unit is never ambiguous. --}}
class('mm-control pl-9 pr-16 tabular-nums')->merge(['aria-invalid' => $hasError ? 'true' : 'false', 'aria-required' => $required ? 'true' : null, 'autocomplete' => 'off']) }} >