@props([ 'name', 'label' => '', 'accept' => '', 'required' => false, 'helpText' => '', 'class' => '', ]) @php $hasError = $errors->has($name); $inputClasses = cn( 'bg-muted text-white rounded-[0.625rem] border px-4 py-3 w-full focus:outline-none focus:ring-2 focus:ring-primary transition-colors file:mr-4 file:py-1 file:px-4 file:rounded-full file:border-0 file:text-sm file:font-medium file:bg-primary/10 file:text-primary hover:file:bg-primary/20 file:cursor-pointer', $hasError ? 'border-destructive' : 'border-white/10', $class ); @endphp
{{ $helpText }}
@endif @error($name){{ $message }}
@enderror