{{--
Button Component
A button with authorization support, variants, loading states, and icons.
Props:
- type: string - Button type (button, submit, reset)
- variant: string - Button style: primary, secondary, danger, ghost
- size: string - Button size: sm, md, lg
- icon: string|null - Icon name (left position)
- iconRight: string|null - Icon name (right position)
- loading: bool - Show loading state
- loadingText: string|null - Text to show during loading
- disabled: bool - Whether button is disabled
- canGate: string|null - Gate/ability to check
- canResource: mixed|null - Resource to check against
- canHide: bool - Hide instead of disable when unauthorized
Usage:
Save Changes
Delete
{{-- With loading state --}}
Save
Saving...
--}}
@if(!$hidden)
@endif