{{--
Select Component
A dropdown select with authorization support, options, and error display.
Props:
- id: string (required) - Select element ID
- options: array - Options as value => label or grouped options
- label: string|null - Label text
- helper: string|null - Helper text below select
- error: string|null - Error message
- placeholder: string|null - Placeholder option text
- multiple: bool - Allow multiple selection
- disabled: bool - Whether select is disabled
- required: bool - Whether select 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