diff --git a/app/Http/Controllers/Frontdesk/IntegrationController.php b/app/Http/Controllers/Frontdesk/IntegrationController.php index 2f0928a..0753150 100644 --- a/app/Http/Controllers/Frontdesk/IntegrationController.php +++ b/app/Http/Controllers/Frontdesk/IntegrationController.php @@ -112,7 +112,7 @@ class IntegrationController extends Controller return back()->withInput()->with('error', $result['error'] ?? 'Could not save SMS credentials.'); } - return back()->with('success', 'Ladill SMS connected. Host alerts will use your key and sender ID.'); + return back()->with('success', 'SMS credentials saved.'); } public function disconnectSms(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -121,7 +121,7 @@ class IntegrationController extends Controller $organization = $this->organization($request); $credentials->disconnectSms($organization); - return back()->with('success', 'Ladill SMS disconnected.'); + return back()->with('success', 'SMS disconnected.'); } public function saveBird(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -147,10 +147,10 @@ class IntegrationController extends Controller ); if (! ($result['ok'] ?? false)) { - return back()->withInput()->with('error', $result['error'] ?? 'Could not save Bird credentials.'); + return back()->withInput()->with('error', $result['error'] ?? 'Could not save email credentials.'); } - return back()->with('success', 'Ladill Bird connected. Host email alerts will use your key and from address.'); + return back()->with('success', 'Email credentials saved.'); } public function disconnectBird(Request $request, MessagingCredentialsService $credentials): RedirectResponse @@ -159,7 +159,7 @@ class IntegrationController extends Controller $organization = $this->organization($request); $credentials->disconnectBird($organization); - return back()->with('success', 'Ladill Bird disconnected.'); + return back()->with('success', 'Email disconnected.'); } public function previewSenders(Request $request, CustomerSmsClient $sms): JsonResponse diff --git a/resources/views/frontdesk/integrations/edit.blade.php b/resources/views/frontdesk/integrations/edit.blade.php index 5389000..049975e 100644 --- a/resources/views/frontdesk/integrations/edit.blade.php +++ b/resources/views/frontdesk/integrations/edit.blade.php @@ -18,10 +18,10 @@
-

Ladill SMS

+

SMS

- Connect your Ladill SMS - API key so host SMS alerts bill your SMS wallet and send under your sender ID. + API key and approved sender ID from + sms.ladill.com.

@if ($credential->hasValidSms()) @@ -60,13 +60,13 @@
- +
@@ -75,10 +75,10 @@
-

Ladill Bird

+

Email

- Connect your Ladill Bird - API key so host email alerts bill your Bird wallet and send from your domain. + API key and from address from + bird.ladill.com.

@if ($credential->hasValidBird()) @@ -124,13 +124,13 @@
- +
diff --git a/tests/Feature/FrontdeskMessagingIntegrationsTest.php b/tests/Feature/FrontdeskMessagingIntegrationsTest.php index 9bb27be..3894d6d 100644 --- a/tests/Feature/FrontdeskMessagingIntegrationsTest.php +++ b/tests/Feature/FrontdeskMessagingIntegrationsTest.php @@ -65,8 +65,9 @@ class FrontdeskMessagingIntegrationsTest extends TestCase $this->actingAs($this->user) ->get(route('frontdesk.integrations.edit')) ->assertOk() - ->assertSee('Ladill SMS') - ->assertSee('Ladill Bird') + ->assertSee('SMS') + ->assertSee('Email') + ->assertDontSee('bill your'); ->assertSee('Outbound webhooks'); }