@extends('layouts.customer') @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
@if(($canAccessGoogle ?? false))

{{ __('Google') }}

{{ __('Connect Google Sheets and Drive to use them across templates, lists, and campaigns.') }}

@php $sheetsIntegration = ($googleIntegrations ?? collect())->get('sheets'); $driveIntegration = ($googleIntegrations ?? collect())->get('drive'); @endphp
@if($sheetsIntegration)
@endif

{{ __('Google Sheets') }}

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

@if($sheetsIntegration) {{ __('Connected') }} @else {{ __('Not connected') }} @endif
  • {{ __('Auto-sync subscribers from Sheets to a list') }}
  • {{ __('Import contacts with field mapping and tags') }}
  • {{ __('Export campaigns, metrics, clicks, and activity to Sheets') }}
@if($sheetsIntegration && $sheetsIntegration->google_account_email) {{ $sheetsIntegration->google_account_email }} @endif
@if($sheetsIntegration)
@csrf {{ __('Disconnect') }}
@else {{ __('Connect') }} @endif
@if($driveIntegration)
@endif

{{ __('Google Drive') }}

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

@if($driveIntegration) {{ __('Connected') }} @else {{ __('Not connected') }} @endif
  • {{ __('Pick images from Drive for your email templates') }}
  • {{ __('Save templates to Drive') }}
  • {{ __('Export backups to a Drive folder') }}
@if($driveIntegration && $driveIntegration->google_account_email) {{ $driveIntegration->google_account_email }} @endif
@if($driveIntegration)
@csrf {{ __('Disconnect') }}
@else {{ __('Connect') }} @endif
@endif

{{ __('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') }}

{{ __('Create a Customer API Key, then paste it into the plugin as the API Key.') }} {{ __('Go to API Keys') }}

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

  • {{ __('The plugin uses Base URL + API Key (Bearer token) to communicate with MailPurse.') }}
  • {{ __('When you click “Test Connection”, it fetches a signing secret and stores it in WordPress for request signing.') }}
  • {{ __('Events like wp_* and woo_* are sent to MailPurse and can trigger automations.') }}
@endsection