@props(['label' => null, 'hint' => null]) @php $model = $attributes->whereStartsWith('wire:model')->first() ?? $attributes->get('name'); $id = $attributes->get('id') ?? 's-'.\Illuminate\Support\Str::slug(str_replace('.', '-', (string) ($model ?: \Illuminate\Support\Str::random(6)))).'-'.\Illuminate\Support\Str::random(4); @endphp
@if ($model && $errors->has($model)) @endif