{{--
Textarea Component
A textarea with authorization support, auto-resize, labels, and error display.
Props:
- id: string (required) - Textarea element ID
- label: string|null - Label text
- helper: string|null - Helper text below textarea
- error: string|null - Error message
- placeholder: string|null - Placeholder text
- rows: int - Number of visible rows (default: 3)
- autoResize: bool - Enable auto-resize via Alpine.js
- disabled: bool - Whether textarea is disabled
- required: bool - Whether textarea 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