@extends('layouts.admin') @section('title', __('Integrations')) @section('page-title', __('Integrations')) @section('content')
@foreach($providers as $provider) @php $type = (string) ($provider['type'] ?? ''); $supported = (bool) ($provider['supported'] ?? false); $isConfigured = (bool) ($configured[$type] ?? false); $server = $supported ? ($serversByType[$type] ?? null) : null; $serverId = data_get($server, 'id'); $serverId = is_numeric($serverId) ? (int) $serverId : null; $docsUrl = match ($type) { 'mailgun' => 'https://documentation.mailgun.com/docs/mailgun/api-reference/api-overview', 'sendgrid' => 'https://docs.sendgrid.com/ui/account-and-settings/api-keys', 'postmark' => 'https://postmarkapp.com/developer/user-guide/send-email-with-api', 'sparkpost' => 'https://developers.sparkpost.com/api/', 'amazon-ses' => 'https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html', 'zeptomail-api' => 'https://www.zoho.com/zeptomail/help/api/email-sending.html', default => null, }; @endphp
@if($isConfigured)
@endif

{{ $provider['label'] }}

{{ $provider['description'] }}

@if($supported) {{ __('Configure') }} @if($docsUrl) {{ __('Docs') }} @endif @else {{ __('Coming Soon') }} @endif
@if($supported)

{{ __('Configure') }} {{ $provider['label'] }}

{{ __('Enter the required API credentials and settings.') }}

@csrf @if($serverId) @method('PUT') @endif @if($type === 'mailgun')
@endif @if($type === 'sendgrid')
@endif @if($type === 'postmark')
@endif @if($type === 'sparkpost')
@endif @if($type === 'amazon-ses')
@endif @if($type === 'zeptomail-api')

{{ __('Used when mode is Template.') }}

@endif
{{ __('Cancel') }} {{ __('Save') }}
@endif @endforeach

{{ __('Google') }}

{{ __('Google integrations are connected per customer account.') }}

@if(!($googleSocialiteAvailable ?? false))
{{ __('Google integration is not available') }}
{{ __('Laravel Socialite is not installed/enabled.') }}
@elseif(!($googleOAuthConfigured ?? false))
{{ __('Google OAuth is not configured') }}
{{ __('Set Google Client ID and Client Secret in Admin → Settings → Auth.') }}
@else
{{ __('Google OAuth is configured') }}
{{ __('Customers can connect Sheets/Drive from Customer → Integrations → Google.') }}
@endif

{{ __('Google Sheets') }}

{{ __('Import and auto-sync subscribers, and export campaign reports.') }}

  • {{ __('Auto-sync subscribers from Sheets to a list') }}
  • {{ __('Import contacts with field mapping and tags') }}
  • {{ __('Export campaigns and metrics to Sheets') }}
{{ __('OAuth Redirect URL') }}
{{ $googleRedirectSheets ?? '' }}

{{ __('Google Drive') }}

{{ __('Use Drive assets in templates and store exports and backups.') }}

  • {{ __('Pick images from Drive for your email templates') }}
  • {{ __('Save templates to Drive') }}
  • {{ __('Export backups to a Drive folder') }}
{{ __('OAuth Redirect URL') }}
{{ $googleRedirectDrive ?? '' }}

{{ __('Wordpress') }}

{{ __('Connect WordPress and WooCommerce events to MailPurse automations.') }}

{{ __('Download Plugin') }}

{{ __('How to install') }}

  1. {{ __('Download the plugin zip from above.') }}
  2. {{ __('In WordPress: Plugins → Add New → Upload Plugin → choose the zip → Install → Activate.') }}
  3. {{ __('In WordPress: Settings → MailPurse.') }}

{{ __('API Key (Customer token)') }}

{{ __('The plugin authenticates using a Customer API Key (Bearer token). Create it from the customer dashboard: Customer → API → Create API Key.') }}

{{ __('How it works') }}

  • {{ __('WordPress uses your Base URL + Customer API Key to fetch lists and a signing secret.') }}
  • {{ __('When you click “Test Connection” in the plugin, it syncs a signing secret used to sign event requests.') }}
  • {{ __('Events are sent to MailPurse and can trigger automations (events like wp_* and woo_*).') }}
@endsection