@extends('layouts.app') @section('title', 'Marketing Email Settings') @section('content')

Marketing Email Settings

{{-- Instructions --}}

Configure your Marketing Email Service Provider (ESP) credentials. Select the active provider your application should use for sending marketing emails or syncing lists. API Keys/Secrets are stored encrypted.

{{-- Form Container --}}
@csrf @method('PUT') {{-- Active Provider Selection --}}
Active Marketing Provider

Choose which service to use for marketing emails.

{{-- None Radio --}}
{{-- Mailchimp Radio --}}
{{-- Constant Contact Radio --}}
@error('active_marketing_provider')

{{ $message }}

@enderror
{{-- Mailchimp Settings (Conditional) --}}
Mailchimp Settings @if (!$settings['mailchimp_configured']) Incomplete @elseif($settings['active_marketing_provider'] === 'mailchimp') Active @else Inactive @endif
@error('mailchimp_api_key')

{{ $message }}

@enderror
@error('mailchimp_server_prefix')

{{ $message }}

@enderror
@error('mailchimp_list_id')

{{ $message }}

@enderror
{{-- Constant Contact Settings (Conditional) --}}
Constant Contact Settings @if (!$settings['constant_contact_configured']) Incomplete @elseif($settings['active_marketing_provider'] === 'constant_contact') Active @else Inactive @endif
@error('constant_contact_api_key')

{{ $message }}

@enderror
@error('constant_contact_secret')

{{ $message }}

@enderror
{{-- Add fields for Access Token / Refresh Token if using OAuth --}}
@error('constant_contact_access_token')

{{ $message }}

@enderror
@error('constant_contact_list_id')

{{ $message }}

@enderror
{{-- Submit Button --}}
{{-- End Form Container --}} @endsection