{{--
Input Component
A text input with authorization support, labels, helper text, and error display.
Props:
- id: string (required) - Input element ID
- label: string|null - Label text
- helper: string|null - Helper text below input
- error: string|null - Error message (auto-resolved from validation bag if not provided)
- type: string - Input type (text, email, password, etc.)
- placeholder: string|null - Placeholder text
- disabled: bool - Whether input is disabled
- required: bool - Whether input is required
- canGate: string|null - Gate/ability to check
- canResource: mixed|null - Resource to check against
- canHide: bool - Hide instead of disable when unauthorized
Usage:
{{ $helper }}
@endif {{-- Error message --}} @if($error){{ $error }}
@elseif($errors->has($id)){{ $errors->first($id) }}
@endif