From bf21e89497e49dcdd7be334061101344c84aa4c1 Mon Sep 17 00:00:00 2001 From: Ghassan Yusuf Date: Tue, 26 May 2026 11:46:19 +0300 Subject: [PATCH] feat: rewrite integrations view with WhatsApp/Email pill tabs and AJAX saves --- .../views/settings/integrations.blade.php | 614 +++++++++++++----- 1 file changed, 451 insertions(+), 163 deletions(-) diff --git a/resources/views/settings/integrations.blade.php b/resources/views/settings/integrations.blade.php index d2dc06f..760a6dd 100644 --- a/resources/views/settings/integrations.blade.php +++ b/resources/views/settings/integrations.blade.php @@ -8,196 +8,484 @@

Configure third-party service integrations.

-
+
-
-
- - - -

WhatsApp (UltraMSG)

-
+ {{-- Pill tabs --}} +
+ + +
-
- @csrf + {{-- ===== WhatsApp tab ===== --}} +
- {{-- Enable toggle --}} -
-
-

Enable WhatsApp Notifications

-

When disabled, no messages will be sent.

-
-
- - -
-
+
+
+ + + +

WhatsApp (UltraMSG)

+
+ +
+ + {{-- Enable toggle --}} +
+
+

Enable WhatsApp Notifications

+

When disabled, no messages will be sent.

+
+
+ +
+
+
+ +
+ + {{-- Instance ID --}} +
+ + +
+ + {{-- API Token --}} +
+ +
+ + +
+
+ + {{-- Webhook Secret --}} +
+ +
+ + +
+
+ + {{-- Webhook Path --}} +
+ +
+ {{ url('/') }}/ + +
+

+ Paste this full URL in your UltraMSG dashboard: {{ url('/') }}/{{ $whatsappSettings['webhook_path'] }} +

+
+ + {{-- Actions --}} +
+
+ + +
+ +
+
+
-
- - {{-- Instance ID --}} -
- - - @error('instance_id')

{{ $message }}

@enderror -
- - {{-- API Token --}} -
- -
- - + +
+ +
{{-- end WhatsApp tab --}} + + {{-- ===== Email tab ===== --}} +
+ +
+
+
✉️
+
+
Microsoft 365 (Azure Mail)
+
Send emails via Microsoft Graph API using Azure AD
- @error('token')

{{ $message }}

@enderror
- {{-- Webhook Secret --}} -
- -
- - +
+
+ + {{-- From Address --}} +
+ + +

Must be a mailbox in your Microsoft 365 tenant.

+
+ + {{-- Actions --}} +
+
+ + +
+ +
+ +
+
+ + {{-- Send Test Email accordion --}} +
+ + +
- {{-- Webhook Path --}} -
- -
- {{ url('/') }}/ - -
-

- Paste this full URL in your UltraMSG dashboard: {{ url('/') }}/{{ $settings['webhook_path'] }} -

- @error('webhook_path')

{{ $message }}

@enderror -
- - {{-- Actions --}} -
-
- - -
- -
- - -
+
{{-- end Email tab --}}
@endsection