# API Integration Features Task

## Backend Tasks
- [x] Create migrations for `shop_api_keys`, `shop_webhooks`, and `webhook_logs`
- [x] Create Models: `ShopApiKey`, `ShopWebhook`, `WebhookLog`
- [x] Create `IntegrationService` for management and dispatching
- [x] Create `AuthenticateApiKey` middleware
- [x] Create `IntegrationController` for Shop Admin
- [x] Create `ExternalIntegrationController` for third-party access
- [x] Create `WebhookLogController` for debugging logs
- [x] Implement `SendWebhookJob` with HMAC signing
- [x] Register routes in `api.php`
- [x] Integrate `dispatchWebhook` into `POSService`
- [x] Integrate `dispatchWebhook` into `LandingPageOrderService`

## Frontend Tasks
- [x] Create `IntegrationService` for API communication
- [x] Create `IntegrationComponent` (UI)
- [x] Add "Integrations" tab to `SettingsComponent`
- [x] Implement UI for API Key management (Create/Delete/Toggle)
- [x] Implement UI for Webhook management (Create/Edit/Delete/Events)
- [x] Implement UI for Webhook Logs visibility
- [x] Add translations (vi/en) and styles
- [x] Fix linting and import issues
